Permalink
Browse files

Bug 9981: Handle sort1 field when duplicating patron

It is noted in Bug 5432 that during a duplicate operation one field,
'Sort1' does not automatically clear when the cursor moves into it. This
patch corrects this.

Edit a patron record to have data in the Sort1 and Sort2 fields. Perform
a duplicate operation on this patron and confirm that the Sort1 and
Sort2 fields show the information from the original patron record. When
you click on each field the contents should disappear.

Signed-off-by: David Cook <dcook@prosentient.com.au>

Works as described.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
  • Loading branch information...
1 parent 19d042a commit ae0d137436c41b66fe975f3f0c0ed39f710b8df5 @oleonard oleonard committed with jcamins Mar 26, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
@@ -1046,7 +1046,11 @@
[% IF ( CGIsort1 ) %]
[% CGIsort1 %]
[% ELSE %]
- <input type="text" id="sort1" name="sort1" size="20" value="[% sort1 %]" />
+ [% IF ( opduplicate ) %]
+ <input type="text" id="sort1" name="sort1" size="20" value="[% sort1 %]" onclick="this.value=''" />
+ [% ELSE %]
+ <input type="text" id="sort1" name="sort1" size="20" value="[% sort1 %]" />
+ [% END %]
[% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %]
[% END %]
</li>

0 comments on commit ae0d137

Please sign in to comment.