CC-3153: When cancelling a show that is currently on-air, the show-instance is not removed.
-fixed
This commit is contained in:
parent
82f3a25f69
commit
efbaebbbf5
|
@ -35,6 +35,7 @@ Zend_Validate::setDefaultNamespaces("Zend");
|
||||||
$front = Zend_Controller_Front::getInstance();
|
$front = Zend_Controller_Front::getInstance();
|
||||||
$front->registerPlugin(new RabbitMqPlugin());
|
$front->registerPlugin(new RabbitMqPlugin());
|
||||||
|
|
||||||
|
Logging::debug($_SERVER['REQUEST_URI']);
|
||||||
|
|
||||||
/* The bootstrap class should only be used to initialize actions that return a view.
|
/* The bootstrap class should only be used to initialize actions that return a view.
|
||||||
Actions that return JSON will not use the bootstrap class! */
|
Actions that return JSON will not use the bootstrap class! */
|
||||||
|
|
|
@ -21,4 +21,11 @@ class Logging {
|
||||||
$logger = self::getLogger();
|
$logger = self::getLogger();
|
||||||
$logger->info($p_msg);
|
$logger->info($p_msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function debug($p_msg){
|
||||||
|
if (APPLICATION_ENV == "development"){
|
||||||
|
$logger = self::getLogger();
|
||||||
|
$logger->debug($p_msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,6 +108,10 @@ class Application_Model_Show {
|
||||||
//remove everything about this show.
|
//remove everything about this show.
|
||||||
public function deleteShow()
|
public function deleteShow()
|
||||||
{
|
{
|
||||||
|
//usually we hide the show-instance, but in this case we are deleting the show template
|
||||||
|
//so delete all show-instances as well.
|
||||||
|
CcShowInstancesQuery::create()->filterByDbOriginalShow($this->_showId)->delete();
|
||||||
|
|
||||||
$show = CcShowQuery::create()->findPK($this->_showId);
|
$show = CcShowQuery::create()->findPK($this->_showId);
|
||||||
$show->delete();
|
$show->delete();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue