fixed autoplaylist database logic and icon position

This commit is contained in:
Robb Ebright 2018-01-03 22:01:46 -05:00
parent 81b418b636
commit 18a7ff5c0a
3 changed files with 9 additions and 6 deletions

View file

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