bugfix on authtype modif
authorPaul POULAIN <paul@koha-fr.org>
Thu, 13 Dec 2007 08:48:02 +0000 (09:48 +0100)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 14 Dec 2007 15:12:13 +0000 (09:12 -0600)
A parameter was missing to tell Koha it was a modif (UPDATE) and not an add (INSERT)

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tmpl

index 0ff6e43..f5a404c 100644 (file)
@@ -72,12 +72,16 @@ function Check(f) {
 <!-- TMPL_IF NAME="add_form" -->
 
        <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
-               <fieldset class="rows"><!-- TMPL_IF NAME="authtypecode" -->
+               <fieldset class="rows">
+               <!-- TMPL_IF NAME="authtypecode" -->
                <legend>Modify authority type</legend>
        <!-- TMPL_ELSE -->
                <legend>New authority type</legend>
        <!-- /TMPL_IF -->
        <ol>
+               <!-- TMPL_IF NAME="authtypecode" -->
+               <input type="hidden" name="modif" value="1" />
+       <!-- /TMPL_IF -->
                        <!-- TMPL_IF NAME="authtypecode" -->
                                <li><label for="authtypecode">Authority type<label><input type="hidden" name="op" value="add_validate" />
                <input type="hidden" name="checked" value="0" /><input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" /><!-- TMPL_VAR NAME="authtypecode" --></li>