Bugzilla – Attachment 32001 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]
[SIGNED OFF] Bug 7878 - When duplicating a patron too many fields carrying over
SIGNED-OFF-Bug-7878---When-duplicating-a-patron-to.patch (text/plain), 7.05 KB, created by
Nick Clemens (kidclamp)
on 2014-10-05 21:54:07 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 7878 - When duplicating a patron too many fields carrying over
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2014-10-05 21:54:07 UTC
Size:
7.05 KB
patch
obsolete
>From 34d5ebc72f25b0502263e228ceca0828b0f879ae Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 24 Sep 2014 12:02:42 -0400 >Subject: [PATCH] [SIGNED OFF] Bug 7878 - When duplicating a patron too many > fields carrying over > >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. > >Signed-off-by: Nick Clemens <nick@quecheelibrary.org> >--- > .../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.10.4
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