CC-3153: When cancelling a show that is currently on-air, the show-instance is not removed.

-fixed
This commit is contained in:
Martin Konecny 2011-12-02 16:22:54 -05:00
parent 82f3a25f69
commit efbaebbbf5
3 changed files with 12 additions and 0 deletions

View File

@ -35,6 +35,7 @@ Zend_Validate::setDefaultNamespaces("Zend");
$front = Zend_Controller_Front::getInstance();
$front->registerPlugin(new RabbitMqPlugin());
Logging::debug($_SERVER['REQUEST_URI']);
/* The bootstrap class should only be used to initialize actions that return a view.
Actions that return JSON will not use the bootstrap class! */

View File

@ -21,4 +21,11 @@ class Logging {
$logger = self::getLogger();
$logger->info($p_msg);
}
public static function debug($p_msg){
if (APPLICATION_ENV == "development"){
$logger = self::getLogger();
$logger->debug($p_msg);
}
}
}

View File

@ -108,6 +108,10 @@ class Application_Model_Show {
//remove everything about this show.
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->delete();
}