fixed autoplaylist database logic and icon position
This commit is contained in:
parent
81b418b636
commit
18a7ff5c0a
3 changed files with 9 additions and 6 deletions
|
@ -565,9 +565,15 @@ SQL;
|
|||
->filterByDbEnds($p_end->format(DEFAULT_TIMESTAMP_FORMAT), Criteria::LESS_THAN)
|
||||
->filterByDbStarts($p_start->format(DEFAULT_TIMESTAMP_FORMAT), Criteria::GREATER_THAN)
|
||||
->leftJoinCcShow()
|
||||
->where('CcShow.has_autoplaylist = ?', 'true')
|
||||
->find($con);
|
||||
return $showInstances;
|
||||
$hasAutoplaylist = array();
|
||||
foreach ($showInstances->toArray() as $ap) {
|
||||
$hasAutoplaylist[$ap['DbId']] = true;
|
||||
}
|
||||
return $hasAutoplaylist;
|
||||
}
|
||||
|
||||
catch (Exception $e) {
|
||||
$con->rollback();
|
||||
Logging::info("Couldn't query show instances for calendar to find which had autoplaylists");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue