Bugzilla – Attachment 31903 Details for
Bug 7878
When duplicating a patron too many fields carrying over
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7878 - When duplicating a patron too many fields carrying over
Bug-7878---When-duplicating-a-patron-too-many-fiel.patch (text/plain), 7.02 KB, created by
Owen Leonard
on 2014-09-26 18:58:37 UTC
(
hide
)
Description:
Bug 7878 - When duplicating a patron too many fields carrying over
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2014-09-26 18:58:37 UTC
Size:
7.02 KB
patch
obsolete
>From 4554123dc5f01604f9a49198f4aa38ed7fb09de2 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 24 Sep 2014 12:02:42 -0400 >Subject: [PATCH] Bug 7878 - When duplicating a patron too many fields > carrying over >Content-Type: text/plain; charset="utf-8" > >When duplicating a patron the resulting entry form contains the data >from the original patron in the following fields: Other names, Initials, >Gender, OPAC note, Staff note, and expiration date. These should be >blank for a new duplicated patron. This patch corrects this. > >To test, locate or create a patron record which contains data in the >fields listed above. Duplicate that patron and confirm that those fields >are blank in the resulting patron entry form. > >Confirm also that editing an existing patron with data in those fields >works correctly. >--- > .../prog/en/modules/members/memberentrygen.tt | 51 +++++++++++--------- > 1 file changed, 29 insertions(+), 22 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 56cc570..41dbdd6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -316,7 +316,7 @@ > <label for="initials"> > [% END %] > Initials: </label> >- <input type="text" id="initials" name="initials" size="20" value="[% initials %]" class="[% focusAction %]" /> >+ <input type="text" id="initials" name="initials" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% initials %][% END %]" class="[% focusAction %]" /> > [% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -329,7 +329,7 @@ > <label for="othernames"> > [% END %] > Other name: </label> >- <input type="text" id="othernames" name="othernames" size="20" value="[% othernames %]" class="[% focusAction %]" /> >+ <input type="text" id="othernames" name="othernames" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% othernames %][% END %]" class="[% focusAction %]" /> > [% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %] > [% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %] > </li> >@@ -337,22 +337,29 @@ > [% UNLESS ( I ) %] > [% UNLESS nosex %] > <li class="radio"> >- >- [% IF ( female ) %] >- <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /> >-[% ELSE %] >- <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" /> >-[% END %] >- [% IF ( male ) %] >- <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /> >-[% ELSE %] >- <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" /> >-[% END %] >-[% IF ( none ) %] >- <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> >-[% ELSE %] >- <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" /> >-[% END %] >+ >+ [% UNLESS ( opduplicate ) %] >+ [% IF ( female ) %] >+ <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /> >+ [% ELSE %] >+ <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" /> >+ [% END %] >+ [% IF ( male ) %] >+ <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /> >+ [% ELSE %] >+ <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" /> >+ [% END %] >+ [% IF ( none ) %] >+ <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> >+ [% ELSE %] >+ <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" /> >+ [% END %] >+ [% ELSE %] >+ <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" /> >+ <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" /> >+ <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" /> >+ [% END %] >+ > </li> > [% END %] > [% END %] >@@ -1009,13 +1016,13 @@ > Expiry date (leave blank for auto calc) </label> > [% IF ( dateformat == "metric" ) %] > [% UNLESS ( opadd ) %] >- <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry %]" class="datepickerto" /> >+ <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% IF ( opduplicate ) %][% ELSE %][% dateexpiry %][% END %]" class="datepickerto" /> > [% ELSE %] > <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" /> > [% END %] > [% ELSE %] > [% UNLESS ( opadd ) %] >- <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry %]" class="datepickerto" /> >+ <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% IF ( opduplicate ) %][% ELSE %][% dateexpiry %][% END %]" class="datepickerto" /> > [% ELSE %] > <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" class="datepickerto" /> > [% END %] >@@ -1032,7 +1039,7 @@ > <label for="opacnote"> > [% END %] > OPAC note: </label> >- <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote %]</textarea> >+ <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% IF ( opduplicate ) %][% ELSE %][% opacnote %][% END %]</textarea> > <div class="hint">This message appears on this patron's user page in the OPAC</div> > [% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %] > </li> >@@ -1045,7 +1052,7 @@ > <label for="borrowernotes"> > [% END %] > Circulation note: </label> >- <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes %]</textarea> >+ <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% IF ( opduplicate ) %][% ELSE %][% borrowernotes %][% END %]</textarea> > <div class="hint">This message displays when checking out to this patron</div> > [% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %] > </li> >-- >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 7878
:
31903
|
32001
|
32234
|
32235