From 264ac5fd2dbb97c5f3f875559c95a19ce49c6aea 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. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- .../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 61ba7886f5..9a3932ef07 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 @@ -178,20 +178,10 @@
- +
    -
  1. - [% IF additional_content %] - Code: [% additional_content.code | html %] - - [% ELSE %] - - - Required - [% END %] -