From 7473f94b07b44a21916f02f9c4a733649ed02559 Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Mon, 29 Dec 2025 11:13:08 +0200 Subject: [PATCH] Bug 41431: Use correct data-attribute to fetch existing circulation rule note If you click Edit on a line with a note, the note field is not displayed in the editing line and is blanked upon save (i.e., the note is lost, even if you made no edits on the note). Value of the note is stored to data-attribute which was changed to use Bootstraps own data-attribute. So now the value must be fetched with keyword "bsContent" instead of just "content". To test: 1. Add note for a circulation rule. 2. Edit the rule. => Note that notes value is not displayed in editing row. 3. Apply this patch. 4. Edit rule again. => Note that notes value is now displayed as expected. Sponsored-by: Koha-Suomi Oy Signed-off-by: David Nind Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt index 3742832e13e..a7e0fa867de 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt @@ -1542,7 +1542,7 @@ var current_input_id = $(current_column).children("input").first().attr("id"); if (current_input_id === "note") { // specific processing for the Note column - var note = $(this).find("a[id='viewnote']").data("content"); + var note = $(this).find("a[id='viewnote']").data("bsContent"); $(current_column).find("input[type='text']").val(note); } else if (current_input_id === "hardduedate") { // specific processing for Hard due date -- 2.50.1 (Apple Git-155)