Bug 8869 - Duplicate member check doesn't disable submit button on bottom.
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 3 Oct 2012 14:49:13 +0000 (10:49 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 12 Oct 2012 19:43:23 +0000 (21:43 +0200)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
I confirm that after applying this patch, the submit button is removed from
patron edit page, avoiding accidentaly clicking on it, without responding to
the question about possible duplicate patron?

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt

index 6516344..7ffefd3 100644 (file)
   </fieldset>
 [% END %] [% END %]
 
+[% UNLESS ( check_member ) %]
     <fieldset class="action">
         <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
       [% IF ( opadd ) %]
          <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Cancel</a>
           [% END %]
     </fieldset>
+[% END %]
 </form>
   
 </div>