From 299b274a3f83ba01820be9c10f743ebeb250049b Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 3 Feb 2022 22:31:19 +0000 Subject: [PATCH] Bug 22659: Add save and continue button to additional-contents.tt To test: 1. Apply patch and restart everything 2. Go to Tools > News and create some new additional content. 3. Notice a Save and continue button 4. Try saving and contining. 5. Make sure if you are using the CodeMirror editor that you are still in the CodeMirror editor 6. Try 2 - 5 again but with the wysiwyg editor, make sure when you save and continue you remain in the wysiwyg editor. 7. If you are saving and contining from News make sure you remain in News, when you are saving and contining from HTML customizations make sure you remain there. 8. Turn on the NewsLog system preference 9. With the NewsLog on make sure your content is being logged correctly when you sabe and continue. Signed-off-by: Sally Signed-off-by: Sally Signed-off-by: Sally Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit e88ee0fc5efea3f25bdca1f4fe70b71239743d9c) Signed-off-by: Lucas Gass (cherry picked from commit 44d44956e2fb6848c8e035ad1aedfb7ea73c8ff3) Signed-off-by: Arthur Suzuki --- .../prog/en/modules/tools/additional-contents.tt | 16 ++++++++++++++++ tools/additional-contents.pl | 16 +++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) 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 cfa0d00a91..de322eab51 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 @@ -166,6 +166,12 @@
+ +
[% IF category == 'news' %] Cancel @@ -178,6 +184,9 @@ + + +
  1. @@ -438,6 +447,13 @@ [% INCLUDE 'calendar.inc' %] [% Asset.js("js/tools-menu.js") | $raw %] [% Asset.js("lib/hc-sticky.js") | $raw %] + [% IF additional_contents.count %] [% INCLUDE 'datatables.inc' %]