IM-629
-filter by using instance id instead of show id Conflicts: airtime_mvc/application/models/Schedule.php
This commit is contained in:
parent
af7b2d5347
commit
bb36556bb9
6 changed files with 17 additions and 11 deletions
|
@ -437,15 +437,18 @@ class Application_Model_ShowBuilder
|
|||
$display_items = array();
|
||||
|
||||
$shows = array();
|
||||
$showInstance = array();
|
||||
if ($this->opts["myShows"] === 1) {
|
||||
|
||||
$shows = $this->getUsersShows();
|
||||
} elseif ($this->opts["showFilter"] !== 0) {
|
||||
$shows[] = $this->opts["showFilter"];
|
||||
} elseif ($this->opts["showInstanceFilter"] !== 0) {
|
||||
$showInstance[] = $this->opts["showInstanceFilter"];
|
||||
}
|
||||
|
||||
$scheduled_items = Application_Model_Schedule::GetScheduleDetailItems(
|
||||
$this->startDT, $this->endDT, $shows);
|
||||
$this->startDT, $this->endDT, $shows, $showInstance);
|
||||
|
||||
for ($i = 0, $rows = count($scheduled_items); $i < $rows; $i++) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue