From f45ada554057c9b128d841db4d9192c241b9b349 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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 --- .../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 += '
  • %s
  • '.format(row.suggestion_id, _("Delete")) [% END %] - [% UNLESS s.archived %] + if (!row.archived){ node += '
  • %s
  • '.format(row.suggestion_id, _("Archive")) - [% ELSE %] + } else { node += '
  • %s
  • '.format(row.suggestion_id, _("Unarchive")) - [% END %] + } node += '' return node [% ELSIF CAN_user_suggestions_suggestions_delete %] -- 2.39.5