CC-3542 : When you delete the current show it takes all songs from that show out of the playout history

This commit is contained in:
Naomi Aro 2012-04-03 11:15:22 +02:00
parent d27470da99
commit 5dfaa00c25
1 changed files with 6 additions and 4 deletions

View File

@ -570,11 +570,13 @@ class Application_Model_Scheduler {
} }
$this->removeItems($remove, false); $this->removeItems($remove, false);
$instance->setDbEnds($this->nowDT);
$instance->save($this->con);
} }
else {
$instance->setDbEnds($this->nowDT); $instance->delete($this->con);
$instance->save($this->con); }
$this->con->commit(); $this->con->commit();
} }
catch (Exception $e) { catch (Exception $e) {