casting non mandatory types from "", to avoid database query problems.

This commit is contained in:
Naomi 2013-08-20 17:23:15 -04:00
parent 2e572c652c
commit 007a7ee7ef
3 changed files with 100 additions and 85 deletions

View file

@ -12,6 +12,7 @@ class PlayouthistoryController extends Zend_Controller_Action
->addActionContext('create-list-item', 'json')
->addActionContext('edit-list-item', 'json')
->addActionContext('delete-list-item', 'json')
->addActionContext('delete-list-items', 'json')
->addActionContext('update-list-item', 'json')
->addActionContext('update-file-item', 'json')
->addActionContext('create-template', 'json')
@ -192,6 +193,14 @@ class PlayouthistoryController extends Zend_Controller_Action
$historyService = new Application_Service_HistoryService();
$historyService->deletePlayedItem($history_id);
}
public function deleteListItemsAction()
{
$history_ids = $this->_getParam('ids');
$historyService = new Application_Service_HistoryService();
$historyService->deletePlayedItems($history_ids);
}
public function updateListItemAction()
{