Skip to content

Commit

Permalink
Merge pull request #12575 from kaltura/Tucana-20.6.0-liv-1234
Browse files Browse the repository at this point in the history
LIV-1234: Order by start date the result.
  • Loading branch information
shamamayair authored Feb 13, 2024
2 parents 8371502 + 36875c2 commit 3ee7f54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/schedule/base/lib/model/ScheduleEventPeer.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ public static function retrieveByTemplateEntryIdAndTypes($templateEntryId, $type
{
$c->add(ScheduleEventPeer::START_DATE, $endTime + self::TIME_MARGIN, Criteria::LESS_EQUAL);
}
$c->addAscendingOrderByColumn(ScheduleEventPeer::START_DATE);
$filter = new ScheduleEventFilter();
$filter->setTemplateEntryIdEqual($templateEntryId);
$filter->attachToCriteria($c);
Expand Down

0 comments on commit 3ee7f54

Please sign in to comment.