Followup : authorities frameworks were not editable
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 8 Oct 2009 14:01:00 +0000 (16:01 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 8 Oct 2009 14:08:19 +0000 (16:08 +0200)
Followup to :
85fcede8ce4cc79d6f8daa7204133fca50275e35

admin/auth_tag_structure.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tmpl

index 4cd9b75..4f30d23 100755 (executable)
@@ -72,6 +72,7 @@ if (!$op or $op eq 'authtype_create_confirm') {
        $sth->execute($authtypecode);
        my ($authtypeexist) = $sth->fetchrow;
        if ($authtypeexist) {
+               $op||="else";
        } else {
                # if authtype does not exists, then OP must be changed to "create authtype" if we are not on the way to create it
                # (op = authtyp_create_confirm)
index 2c127e7..1a21466 100644 (file)
@@ -152,7 +152,7 @@ $(document).ready(function() {
                        <td><!-- TMPL_VAR NAME="authtypetext" --></td>
                        <td><!-- TMPL_VAR NAME="summary" --></td>
                        <td><!-- TMPL_VAR NAME="auth_tag_to_report" --></td>
-                       <td><a href="auth_tag_structure.pl?authtypecode=<!-- TMPL_VAR NAME="authtypecode" -->&op=else" class="button parameters" >MARC structure</a></td>
+                       <td><a href="auth_tag_structure.pl?authtypecode=<!-- TMPL_VAR NAME="authtypecode" -->" class="button parameters" >MARC structure</a></td>
                        <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" escape="HTML" -->">Edit</a></td>
                        <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" escape="HTML" -->">Delete</a></td>
                </tr>