From 8e5440b01baa402ea826e7a107586c2f94a5e0d2 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 14 Oct 2016 11:29:44 +0200 Subject: [PATCH] Bug 17446: Typo seleted MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Built on top of bug 17441 Test plan: Just have a look at the changes. Trivial. Git grep seleted. No results. Signed-off-by: Katrin Fischer Signed-off-by: Brendan Gallagher (cherry picked from commit f75afef59175933f7e93b04bdcbdcf5180b0b024) Signed-off-by: Frédéric Demians (cherry picked from commit 28eb0a880e2bf249da464f7da75ad409f9ffc919) Signed-off-by: Julian Maurice --- C4/Letters.pm | 2 +- acqui/lateorders.pl | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index 1746342316..798ae9e213 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -473,7 +473,7 @@ sub SendAlerts { }; if (!@$externalid){ - carp "No Order seleted"; + carp "No Order selected"; return { error => "no_order_selected" }; } diff --git a/acqui/lateorders.pl b/acqui/lateorders.pl index 872d0af18b..bf45e30cf7 100755 --- a/acqui/lateorders.pl +++ b/acqui/lateorders.pl @@ -116,8 +116,8 @@ if ($op and $op eq "send_alert"){ $template->param(error_claim => $@); } elsif ( ref $err and exists $err->{error} and $err->{error} eq "no_email" ) { $template->{VARS}->{'error_claim'} = "no_email"; - } elsif ( ref $err and exists $err->{error} and $err->{error} eq "no_order_seleted"){ - $template->{VARS}->{'error_claim'} = "no_order_seleted"; + } elsif ( ref $err and exists $err->{error} and $err->{error} eq "no_order_selected"){ + $template->{VARS}->{'error_claim'} = "no_order_selected"; } else { $template->{VARS}->{'info_claim'} = 1; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt index 5bebcb6369..940f1af47a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt @@ -86,7 +86,7 @@ $(document).ready(function() { [% IF error_claim %] [% IF ( error_claim == "no_email" ) %]
This vendor has no email
- [% ELSIF ( error_claim == "no_order_seleted" ) %] + [% ELSIF ( error_claim == "no_order_selected" ) %]
No order selected
[% ELSE %]
[% error_claim %]
-- 2.39.5