Skip to content

Commit

Permalink
Merge pull request #333 from xibosignage/develop
Browse files Browse the repository at this point in the history
1.8.7 testing - build master container
  • Loading branch information
dasgarner authored Feb 26, 2018
2 parents 51dc129 + b4c3f07 commit c3327db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Controller/DayPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,12 @@ public function grid()
];

$dayParts = $this->dayPartFactory->query($this->gridRenderSort(), $this->gridRenderFilter($filter));

$embed = ($this->getSanitizer()->getString('embed') != null) ? explode(',', $this->getSanitizer()->getString('embed')) : [];

foreach ($dayParts as $dayPart) {
/* @var \Xibo\Entity\DayPart $dayPart */
if (in_array('exceptions', $embed)){
$dayPart->load();
if (!in_array('exceptions', $embed)){
$dayPart->excludeProperty('exceptions');
}
if ($this->isApi())
break;
Expand Down

0 comments on commit c3327db

Please sign in to comment.