Bug 18596 - Quick add form duplicating password confirm
To test: 1 - Add password to BorrowerMandatoryField 2 - View quick add form 3 - See confirm password twice 4 - Apply patch 5 - See confirm password once 6 - Add password to QuickAddFields 7 - Confirm one confirm field 8 - Remove password form BorrowerMandatory field 9 - Confirm there is one confirm field and password fields are not required Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
31630ab0e4
commit
3e5dbef9ef
|
|
@ -1237,7 +1237,9 @@ $(document).ready(function() {
|
|||
if ( skipped_fields.indexOf( input_label ) != -1 ) { input_label=""; }
|
||||
if( qaddfields.indexOf( input_label ) != -1 || $(this).attr('class') == 'required' ){
|
||||
$(this).parent().clone().appendTo("#quick_add_list");
|
||||
if( input_label == 'password') $("#entryform label[for='password2']").parent().clone().appendTo("#quick_add_list");
|
||||
[% UNLESS mandatorypassword %]
|
||||
if( input_label == 'password' ) $("#entryform label[for='password2']").parent().clone().appendTo("#quick_add_list");
|
||||
[% END %]
|
||||
}
|
||||
});
|
||||
if( $("#memberentry_guarantor").length ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue