From e30d1d6844048baf82ebd9db96f398734be7ab12 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Tue, 8 Apr 2008 22:14:14 +0200 Subject: [PATCH] bugfix : independantbranches behaviour Signed-off-by: Joshua Ferraro --- .../prog/en/includes/serials-toolbar.inc | 17 +++++++++++------ serials/subscription-detail.pl | 5 +++++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc index 22b1fbd087..e79c518df4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc @@ -25,11 +25,16 @@ diff --git a/serials/subscription-detail.pl b/serials/subscription-detail.pl index 94242ec9e2..6d4d202030 100755 --- a/serials/subscription-detail.pl +++ b/serials/subscription-detail.pl @@ -105,6 +105,11 @@ $template->param( serialslist => \@serialslist, totalissues => $totalissues, hemisphere => $hemisphere, + cannotedit =>(C4::Context->preference('IndependantBranches') && + C4::Context->userenv && + C4::Context->userenv->{flags} !=1 && + C4::Context->userenv->{branch} && $subs->{branchcode} && + (C4::Context->userenv->{branch} ne $subs->{branchcode})), ); $template->param( "periodicity".($subs->{periodicity}?$subs->{periodicity}:'0') => 1, -- 2.39.5