Bugzilla – Attachment 19503 Details for
Bug 10507
Typo when warning about creating duplicate patron attribute
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 10507 Fix namespace collision in patron entry
SIGNED-OFF-Bug-10507-Fix-namespace-collision-in-pa.patch (text/plain), 2.33 KB, created by
Owen Leonard
on 2013-07-09 12:18:08 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 10507 Fix namespace collision in patron entry
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-07-09 12:18:08 UTC
Size:
2.33 KB
patch
obsolete
>From e3f257d3ad3e6b9f1249e2480467891946300850 Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Tue, 9 Jul 2013 11:18:49 +0100 >Subject: [PATCH] [SIGNED-OFF] Bug 10507 Fix namespace collision in patron > entry >Content-Type: text/plain; charset="utf-8" > >If a warning about a duplicated patron attribute is returned >the value was being passed back for display in the warning >message with the same name as the variable in errors > >as the message is displayed in the context of errors >the error value 1 was being displayed not the value >duplicated as intended. >Pass the value to the template with a unique name > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >I fixed another tiny typo while signing off: "is already in use" instead >of "is already is use." >--- > .../prog/en/modules/members/memberentrygen.tt | 2 +- > members/memberentry.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index 1bb8e3e..7a2d29e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -176,7 +176,7 @@ > [% END %] > [% IF ( ERROR_extended_unique_id_failed ) %] > <li id="ERROR_extended_unique_id_failed">The attribute value >- [% ERROR_extended_unique_id_failed %] is already is use by another patron record.</li> >+ [% ERROR_extended_unique_id_failed_value %] is already in use by another patron record.</li> > [% END %] > </ul> > </div> >diff --git a/members/memberentry.pl b/members/memberentry.pl >index b7123f2..0bf3122 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -315,7 +315,7 @@ if ($op eq 'save' || $op eq 'insert'){ > foreach my $attr (@$extended_patron_attributes) { > unless (C4::Members::Attributes::CheckUniqueness($attr->{code}, $attr->{value}, $borrowernumber)) { > push @errors, "ERROR_extended_unique_id_failed"; >- $template->param(ERROR_extended_unique_id_failed => "$attr->{code}/$attr->{value}"); >+ $template->param(ERROR_extended_unique_id_failed_value => "$attr->{code}/$attr->{value}"); > } > } > } >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10507
:
19500
|
19503
|
19608