CC-5698: Library -> Scheduled column doesn't get updated when bulk adding items
Array storing file ids of scheduled files was in wrong place and was getting re-created everytime a file was inserted into a show
This commit is contained in:
parent
6cd84363a6
commit
cd592827fd
|
@ -706,6 +706,9 @@ class Application_Model_Scheduler
|
|||
$doUpdate = false;
|
||||
$values = array();
|
||||
|
||||
//array that stores the cc_file ids so we can update the is_scheduled flag
|
||||
$fileIds = array();
|
||||
|
||||
foreach ($filesToInsert as &$file) {
|
||||
//item existed previously and is being moved.
|
||||
//need to keep same id for resources if we want REST.
|
||||
|
@ -761,9 +764,6 @@ class Application_Model_Scheduler
|
|||
$file['fadein'] = Application_Common_DateHelper::secondsToPlaylistTime($file['fadein']);
|
||||
$file['fadeout'] = Application_Common_DateHelper::secondsToPlaylistTime($file['fadeout']);
|
||||
|
||||
//array that stores the cc_file ids so we can update the is_scheduled flag
|
||||
$fileIds = array();
|
||||
|
||||
switch ($file["type"]) {
|
||||
case 0:
|
||||
$fileId = $file["id"];
|
||||
|
|
Loading…
Reference in New Issue