CC-4154L: Indicate whether a show has scheduled content on the calendar page
-done
This commit is contained in:
parent
975abbaf10
commit
550c97a2dc
3 changed files with 64 additions and 2 deletions
|
@ -1621,6 +1621,15 @@ class Application_Model_Show {
|
|||
else if ($p_editable && $nowEpoch < $endsEpoch) {
|
||||
$options["editable"] = true;
|
||||
}
|
||||
|
||||
$showInstance = new Application_Model_ShowInstance($show["instance_id"]);
|
||||
$showContent = $showInstance->getShowListContent();
|
||||
if (empty($showContent)) {
|
||||
$options["show_empty"] = 1;
|
||||
} else {
|
||||
$options["show_empty"] = 0;
|
||||
}
|
||||
|
||||
$events[] = &self::makeFullCalendarEvent($show, $options, $startsDT, $endsDT, $startsEpochStr, $endsEpochStr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue