Skip to content
Snippets Groups Projects
Commit 57ae2ce3 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch...

Merge branch 'hotline#80134_erreur_php_lors_de_l_integration_d_un_fichier_de_notices' into 'hotline'

hotline #80134 : fix notice deletion on cosmogramme

See merge request !2827
parents 1d13fa88 a25f907b
Branches
Tags
3 merge requests!2869Master,!2830Hotline,!2827hotline #80134 : fix notice deletion on cosmogramme
Pipeline #5005 passed with stage
in 45 minutes and 9 seconds
- ticket #80134 : Cosmogramme : Correction d'une erreur survenant lorsqu'un fichier de suppression d'exemplaire contenait un exemplaire non présent dans la base de données
\ No newline at end of file
......@@ -763,7 +763,8 @@ class notice_integration {
public function supprimerExemplaire($id_notice,$ex) {
if(!$id_notice) {
if((!$id_notice) ||
!($notice = Class_Notice::find($id_notice))) {
$this->statut = static::RECORD_REJECT;
$this->erreur="notice de l'exemplaire à supprimer non trouvée";
return false;
......@@ -778,7 +779,6 @@ class notice_integration {
return false;
}
$notice = Class_Notice::find($id_notice);
foreach($exemplaires as $exemplaire) {
$notice->removeExemplaire($exemplaire);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment