Skip to content
Snippets Groups Projects

Hotline

Merged Patrick Barroca requested to merge hotline into master
Compare and
27 files
+ 330
51
Preferences
Compare changes
Files
27
@@ -111,4 +111,17 @@ class Admin_RecordsController extends ZendAfi_Controller_Action {
$this->_helper->notify($this->_('La bande-annonce a bien été mise à jour'));
$this->_redirectClose($this->_getReferer());
}
public function deleteItemAction() {
if ($item = Class_Exemplaire::find($this->_getParam('id')))
$item->delete();
$this->_helper->notify($item
? $this->_('Exemplaire "%s" supprimé',
$item->getCodeBarres())
: $this->_('Exemplaire non trouvé'));
$this->_redirectToReferer();
}
}