From e88ee0fc5efea3f25bdca1f4fe70b71239743d9c 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 --- .../prog/en/modules/tools/additional-contents.tt | 15 +++++++++++++++ tools/additional-contents.pl | 16 +++++++++++++++- 2 files changed, 30 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 3a762a9505..f996ec72ad 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,6 +171,12 @@
+ +
[% IF category == 'news' %] Cancel @@ -184,6 +190,8 @@ + +
  1. @@ -453,6 +461,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' %]