From 4a97869964af9a2f02e0a551138078b7520d34e0 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 21 Aug 2015 11:02:00 +0200 Subject: [PATCH] Bug 7957: Redirect after creating a new routing list This avoids creating the same list multiple times when reloading the page --- serials/routinglist.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/serials/routinglist.pl b/serials/routinglist.pl index f8455d3..d1e4b86 100755 --- a/serials/routinglist.pl +++ b/serials/routinglist.pl @@ -64,6 +64,9 @@ if($op && $op eq 'savenew') { my $subscriptionid = $input->param('subscriptionid'); $routinglistid = AddRoutingList($subscriptionid, $title); + print $input->redirect('/cgi-bin/koha/serials/routinglist.pl?routinglistid=' + . $routinglistid); + exit; } else { $routinglistid = $input->param('routinglistid'); } -- 1.9.1