CC-4154L: Indicate whether a show has scheduled content on the calendar page

-done
This commit is contained in:
denise 2012-08-07 14:57:04 -04:00
parent 975abbaf10
commit 550c97a2dc
3 changed files with 64 additions and 2 deletions

View file

@ -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);
}