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: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Owen Leonard 2013-03-26 10:19:58 -04:00 committed by Chris Cormack
parent db7011c58c
commit 4a1f2f70bb
1 changed files with 5 additions and 1 deletions

View File

@ -1034,7 +1034,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>