Bugzilla – Attachment 168034 Details for
Bug 37162
Remove dead confirmation code when deleting tags from authority frameworks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37162: Remove the [% IF ( delete_confirmed ) %] stuff in auth_tag_structure.tt
Bug-37162-Remove-the--IF--deleteconfirmed---stuff-.patch (text/plain), 3.40 KB, created by
Sam Lau
on 2024-06-24 17:10:01 UTC
(
hide
)
Description:
Bug 37162: Remove the [% IF ( delete_confirmed ) %] stuff in auth_tag_structure.tt
Filename:
MIME Type:
Creator:
Sam Lau
Created:
2024-06-24 17:10:01 UTC
Size:
3.40 KB
patch
obsolete
>From 6033960b71166683acb1d31012ef9e3cf8e04076 Mon Sep 17 00:00:00 2001 >From: Phil Ringnalda <phil@chetcolibrary.org> >Date: Sat, 22 Jun 2024 15:57:01 -0700 >Subject: [PATCH] Bug 37162: Remove the [% IF ( delete_confirmed ) %] stuff in > auth_tag_structure.tt > >Since auth_tag_structure.pl redirects after deleting when the op is >delete_confirmed (which is actually cud-delete_confirmed) rather than loading >the template, there's no reason to have dead code for IF ( delete_confirmed ) >which is both never set, and is never called when anything like it is set. > >Test plan: >1. With the patch applied, Administration - Authority types - Chronological > Term row - Actions menu - MARC Structure >2. You've already verified that auth_tag_structure.tt isn't malformed, but for > extra fun choose a tag, Actions menu - Delete - Yes, delete and verify that > it was deleted > >Signed-off-by: Sam Lau <samalau@gmail.com> >--- > .../en/modules/admin/auth_tag_structure.tt | 19 +++++-------------- > 1 file changed, 5 insertions(+), 14 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt >index 1d1b1e83ae..41539f80ec 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt >@@ -16,9 +16,6 @@ > [% IF ( delete_confirm ) %] > [% tx("Confirm deletion of tag '{searchfield}'", { searchfield = searchfield }) | html %] › > [% END %] >- [% IF ( delete_confirmed ) %] >- [% t("Data deleted") | html %] › >- [% END %] > [% IF ( authtypecode ) %] > [% tx("'{authtypecode}' framework", { authtypecode = authtypecode }) | html %] > [% ELSE %] >@@ -46,7 +43,7 @@ > <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a> > [% END %] > >- [% IF ( add_form || delete_confirm || delete_confirmed ) %] >+ [% IF ( add_form || delete_confirm ) %] > [% IF ( authtypecode ) %] > [% WRAPPER breadcrumb_item %] > <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% tx("'{authtypecode}' framework", { authtypecode = authtypecode }) | html %]</a> >@@ -84,19 +81,13 @@ > [% tx("Confirm deletion of tag '{searchfield}'", { searchfield = searchfield }) | html %] > [% END %] > [% ELSE %] >- [% IF ( delete_confirmed ) %] >+ [% IF ( authtypecode ) %] > [% WRAPPER breadcrumb_item bc_active= 1 %] >- <span>Data deleted</span> >+ [% tx("{authtypecode} framework", { authtypecode = authtypecode }) | html %] > [% END %] > [% ELSE %] >- [% IF ( authtypecode ) %] >- [% WRAPPER breadcrumb_item bc_active= 1 %] >- [% tx("{authtypecode} framework", { authtypecode = authtypecode }) | html %] >- [% END %] >- [% ELSE %] >- [% WRAPPER breadcrumb_item bc_active= 1 %] >- <span>Default framework</span> >- [% END %] >+ [% WRAPPER breadcrumb_item bc_active= 1 %] >+ <span>Default framework</span> > [% END %] > [% END %] > >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37162
:
168005
|
168034
|
168109