Skip to content

Commit

Permalink
BUGFIX: Calendar feed not showing all calendars
Browse files Browse the repository at this point in the history
  • Loading branch information
unclecheese committed Aug 16, 2012
1 parent 4d708c6 commit 395166a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ public function getCMSFields()
GridFieldConfig_RecordEditor::create()
));

$otherCals = Calendar::get()->filter("ID:Negation",$this->ID);
$otherCals = Calendar::get()->exclude(array("ID" => $this->ID));
if($otherCals->exists()) {
$f->addFieldToTab("Root.$feeds", new CheckboxSetField(
'NestedCalendars',
_t('Calendar.NESTEDCALENDARS','Include events from these calendars'),
$otherCals->map()
$otherCals->map('ID', 'Link')
));
}

Expand Down

0 comments on commit 395166a

Please sign in to comment.