diff --git a/airtime_mvc/application/controllers/PlayouthistoryController.php b/airtime_mvc/application/controllers/PlayouthistoryController.php index 6dbb82332..c0c323932 100644 --- a/airtime_mvc/application/controllers/PlayouthistoryController.php +++ b/airtime_mvc/application/controllers/PlayouthistoryController.php @@ -212,7 +212,7 @@ class PlayouthistoryController extends Zend_Controller_Action $params = $request->getPost(); Logging::info($params); - $historyService = new Application_Service_HistoryService(); + $historyService = new Application_Service_HistoryService(); $historyService->createItemTemplate($params); } diff --git a/airtime_mvc/application/services/HistoryService.php b/airtime_mvc/application/services/HistoryService.php index 027be3d2d..b1248a255 100644 --- a/airtime_mvc/application/services/HistoryService.php +++ b/airtime_mvc/application/services/HistoryService.php @@ -474,18 +474,18 @@ class Application_Service_HistoryService public function createItemTemplate($fields) { - $this->con->beginTransaction(); - - try { - - $template = new CcPlayoutHistoryTemplate(); - - $this->con->commit(); - } - catch (Exception $e) { - $this->con->rollback(); - Logging::info($e); - throw $e; + $this->con->beginTransaction(); + + try { + + $template = new CcPlayoutHistoryTemplate(); + + $this->con->commit(); + } + catch (Exception $e) { + $this->con->rollback(); + Logging::info($e); + throw $e; } }