Merge branch 'master' into CC-2301
This commit is contained in:
commit
3e320f1e2e
4 changed files with 39 additions and 28 deletions
|
@ -660,6 +660,12 @@ class Application_Model_Scheduler
|
|||
$nextStartDT = $endTimeDT;
|
||||
$pos++;
|
||||
|
||||
/* If we are adjusting start and end times for items
|
||||
* after the insert location, we need to exclude the
|
||||
* schedule item we just inserted because it has correct
|
||||
* start and end times*/
|
||||
$excludeIds[] = $sched->getDbId();
|
||||
|
||||
}//all files have been inserted/moved
|
||||
|
||||
// update is_scheduled flag for each cc_file
|
||||
|
@ -675,12 +681,6 @@ class Application_Model_Scheduler
|
|||
$filesToInsert = null;
|
||||
}
|
||||
|
||||
/* If we are adjusting start and end times for items
|
||||
* after the insert location, we need to exclude the
|
||||
* schedule item we just inserted because it has correct
|
||||
* start and end times*/
|
||||
$excludeIds[] = $sched->getDbId();
|
||||
|
||||
if ($adjustSched === true) {
|
||||
$followingSchedItems = CcScheduleQuery::create()
|
||||
->filterByDBStarts($initalStartDT->format("Y-m-d H:i:s.u"), Criteria::GREATER_EQUAL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue