From 2f875daa607b554beeaeed87cf030cfdc1d2e35a Mon Sep 17 00:00:00 2001 From: Lyon3 Team Date: Mon, 1 Oct 2012 04:45:12 -0400 Subject: [PATCH] Bug_7913-Follow-up, hide button for subs with items Signed-off-by: Paul Poulain --- .../prog/en/modules/serials/serials-collection.tt | 2 +- .../intranet-tmpl/prog/en/modules/serials/serials-edit.tt | 7 +++++++ serials/serials-collection.pl | 7 ++++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt index 65d778ddc5..3d2e690037 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt @@ -195,7 +195,7 @@ $(document).ready(function() {

  - [% IF ( subscriptions.size == 1 ) %] [% END %] + [% IF ( subscriptions.size == 1 and !serialsadditems ) %] [% END %]

[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt index 79ce099de2..a6fd962768 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt @@ -3,6 +3,12 @@ [% INCLUDE 'doc-head-close.inc' %]