[Koha-patches] [PATCH] [SIGNED-OFF] Bug 4286 Allow receiving if subscription enddate not set

Nicole Engard nengard at bywatersolutions.com
Thu Dec 16 10:59:34 CET 2010


From: Colin Campbell <colin.campbell at ptfs-europe.com>

HasSubscriptionExpired is not a boolean return it may also
return that a valid subscription enddate is not set
This should not block receipting of issues

Signed-off-by: Nicole Engard <nengard at bywatersolutions.com>
---
 serials/serials-edit.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/serials/serials-edit.pl b/serials/serials-edit.pl
index 90f3281..58936be 100755
--- a/serials/serials-edit.pl
+++ b/serials/serials-edit.pl
@@ -145,7 +145,7 @@ foreach my $tmpserialid (@serialids) {
         $data->{arriveddate}=$today->output('syspref');
         $data->{'editdisable'} = (
             (
-                HasSubscriptionExpired( $data->{subscriptionid} )
+                HasSubscriptionExpired( $data->{subscriptionid} ) == 1
                   && $data->{'status1'}
             )
               || $data->{'cannotedit'}
-- 
1.5.6.5



More information about the Koha-patches mailing list