fixing permissions on mainpage
[koha_fer] / serials / subscription-renew.pl
index 127e47e..16cdc7e 100755 (executable)
@@ -52,9 +52,8 @@ use CGI;
 use C4::Koha;
 use C4::Auth;
 use C4::Date;
-use HTML::Template;
+
 use C4::Context;
-use C4::Search;
 use C4::Auth;
 use C4::Output;
 use C4::Interface::CGI::Output;
@@ -71,7 +70,7 @@ my ($template, $loggedinuser, $cookie)
                 query => $query,
                 type => "intranet",
                 authnotrequired => 0,
-                flagsrequired => {catalogue => 1},
+                flagsrequired => {serials => 1},
                 debug => 1,
                 });
 if ($op eq "renew") {
@@ -81,7 +80,7 @@ if ($op eq "renew") {
 
 my $subscription= GetSubscription($subscriptionid);
 
-$template->param(startdate => format_date(GetSubscriptionExpirationDate($subscriptionid)),
+$template->param(startdate => format_date(GetExpirationDate($subscriptionid)),
                 numberlength => $subscription->{numberlength},
                 weeklength => $subscription->{weeklength},
                 monthlength => $subscription->{monthlength},