From 80ab9dee1d54e12317b8a69bbdd48bd76609b0f4 Mon Sep 17 00:00:00 2001 From: rangi Date: Mon, 4 Aug 2003 21:47:23 +0000 Subject: [PATCH] Fix for returns error message always displaying --- circ/returns.pl | 2 ++ koha-tmpl/intranet-tmpl/default/en/circ/returns.tmpl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/circ/returns.pl b/circ/returns.pl index 5d210af914..83d37f77a2 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -255,7 +255,9 @@ foreach my $code (keys %$messages) { } else { die "Unknown error code $code"; # XXX } + if (%err){ push (@errmsgloop, \%err); + } last if $exit_required_p; } $template->param(errmsgloop => \@errmsgloop); diff --git a/koha-tmpl/intranet-tmpl/default/en/circ/returns.tmpl b/koha-tmpl/intranet-tmpl/default/en/circ/returns.tmpl index 5cb2c8ebae..373be9145d 100644 --- a/koha-tmpl/intranet-tmpl/default/en/circ/returns.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/circ/returns.tmpl @@ -126,6 +126,7 @@ Phone: +
/images/background-mem.gif">Messages
@@ -150,6 +151,7 @@ Phone:
+
-- 2.39.5