From 532f19994990945a5786ca42ffaba732579066b8 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 22 Aug 2012 15:26:58 +0200 Subject: [PATCH] Bug 8666: Hide 'New basket' link if supplier is inactive --- koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc index 11d7b39..0c52cc2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc @@ -23,7 +23,9 @@ var manageorders = [ [% IF ( CAN_user_acquisition_order_manage ) %] + [% IF (active) %] { text: _("New basket"), url: "/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% booksellerid %]&op=add_form"}, + [% END %] { text: _("Baskets"), url: "/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% booksellerid %]"}, { text: _("Basket groups"), url: "/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]"}, [% END %] @@ -52,7 +54,7 @@ [% END %]
  • New contract
  • Contracts
  • - [% UNLESS ( basketcount ) %] + [% IF (active && !basketcount) %]
  • New basket
  • [% END %] [% END %] -- 1.7.10.4