Skip to content
Snippets Groups Projects

Master

Merged Patrick Barroca requested to merge master into WIP
Compare and
28 files
+ 331
52
Preferences
Compare changes
Files
28
@@ -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();
}
}