Skip to content
Snippets Groups Projects
Commit 6b553a14 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #49634 fix fatal error

parent 87aeedfe
Branches
Tags
5 merge requests!2102#57574 : correction orthographe des jours de la semaine,!2080Sandbox detach zf from storm,!2061Master,!2033Dev#49634 bonus 2255 choix du site de retrait precocher site abonne et non site document,!2027Dev#49634 bonus 2255 choix du site de retrait precocher site abonne et non site document
Pipeline #492 passed with stage
in 22 minutes and 27 seconds
......@@ -88,11 +88,18 @@ class ZendAfi_View_Helper_Notice_ReservationLink extends ZendAfi_View_Helper_Bas
protected function _getBranchCode($item) {
if(Class_CosmoVar::isSiteRetraitResaChoiceEnabled()
&& ($branch_code = Class_Users::getIdentity()->getLibraryCode()))
return $branch_code;
$item_branch_code = $item->getCodeAnnexe();
return $item->getCodeAnnexe();
if(!Class_CosmoVar::isSiteRetraitResaChoiceEnabled())
return $item_branch_code;
if(!$user = Class_Users::getIdentity())
return $item_branch_code;
if(!$branch_code = $user->getLibraryCode())
return $item_branch_code;
return $branch_code;
}
......
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