Bug 28510: Skip processing holds queue items from closed libraries when HoldsQueueSki...
[koha-ffzg.git] / svc / article_request
index e5c1759..9d55d9a 100755 (executable)
@@ -20,7 +20,7 @@
 
 use Modern::Perl;
 
-use CGI;
+use CGI qw ( -utf8 );
 use JSON qw(to_json);
 
 use C4::Auth qw(check_cookie_auth);
@@ -58,6 +58,11 @@ if ($ar) {
         $ar->branchcode( $branchcode ) if $branchcode;
         $ar = $ar->store();
     }
+    elsif( $action eq 'update_urls' ) {
+        my $urls = $cgi->param('urls') // q{};
+        $ar->urls( $urls );
+        $ar = $ar->store();
+    }
 }
 
 print to_json( { success => $ar ? 1 : 0 } );