From e366fc9d9d5d6726ccf780d2eb5e5534c8670277 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 28 Feb 2017 02:20:01 +0000 Subject: [PATCH] Bug 18181: Can't tell which subscriptions already have a routing list if seeing all subs attached to a biblio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To test: 1) Go to Serials -> search for a subscription 2) Add a new routing list for a subscription 3) After saving, you should be redirected to the subscription detail page 4) Click Serial collection on the left sidebar menu 5) Notice there is a button that says 'Edit routing list' next to this subscription in the first table 6) Click 'See any subscription attached to this biblio' link 7) Notice it no longer says edit next to this subscription, it says 'Create routing list' 8) Apply patch and refresh page 9) Should now show 'Edit' button like expected Sponsored-by: Catalyst IT Signed-off-by: Séverine QUEUNE Signed-off-by: Séverine QUEUNE --- serials/serials-collection.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/serials/serials-collection.pl b/serials/serials-collection.pl index 47d07eb..5182cbd 100755 --- a/serials/serials-collection.pl +++ b/serials/serials-collection.pl @@ -146,6 +146,7 @@ my $subscriptionidlist=""; foreach my $subscription (@$subscriptiondescs){ $subscriptionidlist.=$subscription->{'subscriptionid'}."," ; $biblionumber = $subscription->{'bibnum'} unless ($biblionumber); + $subscription->{'hasRouting'} = check_routing($subscription->{'subscriptionid'}); } chop $subscriptionidlist; -- 2.7.4