From 83cb6a7077ed891568b34e39a4bdbb80631c4417 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 16 Mar 2020 14:55:31 +0000 Subject: [PATCH] Bug 24789: [follow-up] Fix saving of macros Saving was accidentally commented out in patches, this restores that To test: 1 - Create a new macro 2 - Add some content 3 - Reload the macro, no content 4 - Apply patch 5 - Repeat 6 - Macro saves/loads correctly Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson (cherry picked from commit 66742f6e705d5841c6559f346883bdc2f6ee1053) Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc index 641344b704..739f216e27 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -758,7 +758,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr if ( !name || macroEditor.savedGeneration == macroEditor.changeGeneration() ) return; macroEditor.savedGeneration = macroEditor.changeGeneration(); -// storeMacro( name, { contents: macroEditor.getValue(), modified: (new Date()).valueOf(), history: macroEditor.getHistory(), format: $('#macro-format').val() } ); + storeMacro( name, { contents: macroEditor.getValue(), modified: (new Date()).valueOf(), history: macroEditor.getHistory() } ); $('#macro-save-message').text(_("Saved")); showSavedMacros(); } -- 2.20.1