From e43b5856c1723135f8c712de724e4b724768651c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 4 Oct 2021 16:28:49 +0200 Subject: [PATCH] Bug 29113: Hide code for additional contents and generate it additional_contents.code is used to group DB rows together. Each row represent one content in a given language, and the code is used to know they are translation of the lang='default' one. It's not really useful for the end user and we could hide it and generate it. Test plan: Create/Edit/Delete additional contents (news and HTML customizations) and confirm that they are correctly grouped together. You need several languages installed to test this patch correctly. --- .../prog/en/modules/tools/additional-contents.tt | 12 +----------- tools/additional-contents.pl | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt index 2f74dfbcfc1..358f52ba220 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt @@ -171,20 +171,10 @@
- +
    -
  1. - [% IF additional_content %] - Code: [% additional_content.code | html %] - - [% ELSE %] - - - Required - [% END %] -