Bug 8978: Patron's dateexpiry erroneously updated when in UnwantedField

If dateexpiry field was absent because it has been included in
UnWantedField syspref list, the script assumed that the date has
been forgotten and updated it when clicking on 'save' button.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
Lyon3 Team 2012-10-29 11:59:44 +01:00 committed by Jared Camins-Esakov
parent ea9e867a59
commit 43ba461f39

View file

@ -1066,7 +1066,7 @@
[% END %] [% END %]
</ol> </ol>
</fieldset> </fieldset>
[% UNLESS nodateenrolled && nodateexpiry && noopacnote && noborrowernotes %] [% UNLESS nodateenrolled && noopacnote && noborrowernotes %]
<fieldset class="rows" id="memberentry_subscription"> <fieldset class="rows" id="memberentry_subscription">
<legend id="library_setup_lgd">Library set-up</legend><ol> <legend id="library_setup_lgd">Library set-up</legend><ol>
[% UNLESS nodateenrolled %] [% UNLESS nodateenrolled %]
@ -1089,6 +1089,9 @@
[% END %] [% END %]
[% UNLESS nodateexpiry %] [% UNLESS nodateexpiry %]
<li> <li>
[% ELSE %]
<li style="display:none">
[% END %]
[% IF ( mandatorydateexpiry ) %] [% IF ( mandatorydateexpiry ) %]
<label for="to" class="required"> <label for="to" class="required">
[% ELSE %] [% ELSE %]
@ -1112,7 +1115,6 @@
[% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %] [% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %]
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
</li> </li>
[% END %]
[% UNLESS noopacnote %] [% UNLESS noopacnote %]
<li> <li>
[% IF ( mandatoryopacnote ) %] [% IF ( mandatoryopacnote ) %]