Bugzilla – Attachment 191037 Details for
Bug 41546
Cannot unarchive suggestions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41546: Restore the ability to unarchive suggestions
f45ada5.patch (text/plain), 2.34 KB, created by
David Nind
on 2026-01-08 22:17:59 UTC
(
hide
)
Description:
Bug 41546: Restore the ability to unarchive suggestions
Filename:
MIME Type:
Creator:
David Nind
Created:
2026-01-08 22:17:59 UTC
Size:
2.34 KB
patch
obsolete
>From f45ada554057c9b128d841db4d9192c241b9b349 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 15:15:20 +0100 >Subject: [PATCH] Bug 41546: Restore the ability to unarchive suggestions > >There is a TT condition that has not been moved to JS. > >Test plan: >Create a suggestion, archive it >List suggestions and tick "include archived" >Notice that with this patch applied you are able to unarchive the >suggestion > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >index 3c287e1e26..93d3da8c42 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >@@ -1518,11 +1518,11 @@ > [% IF CAN_user_suggestions_suggestions_delete %] > node += '<li><a href="#" data-op="cud-delete" data-suggestionid="%s" class="dropdown-item trigger_action">%s</a></li>'.format(row.suggestion_id, _("Delete")) > [% END %] >- [% UNLESS s.archived %] >+ if (!row.archived){ > node += '<li><a href="#" class="dropdown-item trigger_action" data-op="cud-archive" data-suggestionid="%s">%s</a></li>'.format(row.suggestion_id, _("Archive")) >- [% ELSE %] >+ } else { > node += '<li><a href="#" class="dropdown-item trigger_action" data-op="cud-unarchive" data-suggestionid="%s">%s</a></li>'.format(row.suggestion_id, _("Unarchive")) >- [% END %] >+ } > node += '</ul></div>' > return node > [% ELSIF CAN_user_suggestions_suggestions_delete %] >-- >2.39.5 >
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 41546
:
191027
|
191037
|
191208