From 1e1bd2639dbffba416d4f07f988f75fe5c10947e Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Tue, 9 Jul 2024 12:04:19 +0200 Subject: [PATCH] bp: fix saving regex filter --- Changes | 2 ++ .../plugins-available/business_process/root/bp-3.14.2.js | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 2436e4fdd..aa621afc4 100644 --- a/Changes +++ b/Changes @@ -8,6 +8,8 @@ next: - add transformation and disaggregation functions - add support for timeperiod / time queries in where clause - add percentage to availability queries + - BP: + - fix saving regex filter 3.14.2 Sat Mar 23 19:21:39 CET 2024 - fix embedding 3rd party tools diff --git a/plugins/plugins-available/business_process/root/bp-3.14.2.js b/plugins/plugins-available/business_process/root/bp-3.14.2.js index 1616d0250..c000336ca 100644 --- a/plugins/plugins-available/business_process/root/bp-3.14.2.js +++ b/plugins/plugins-available/business_process/root/bp-3.14.2.js @@ -767,10 +767,15 @@ function bp_edit_node_submit(formId) { el.options[el.selectedIndex].setAttribute("selected",""); } }); - var form = document.getElementById(formId).cloneNode(true); - jQuery(form).find(".template").remove(); + var form = document.getElementById(formId); + + // temporarily disable templated fields + jQuery(form).find(".template").find("input, textarea, select, button").attr("disabled", true); jQuery(form).find('#bp_'+bp_id+'_selected_nodes OPTION').prop('selected',true); var data = jQuery(form).serializeArray(); + // enable again + jQuery(form).find(".template").find("input, textarea, select, button").attr("disabled", false); + var id = current_edit_node_clicked ? current_edit_node_clicked : current_edit_node; bp_post_and_refresh('bp.cgi?action=edit_node&bp='+bp_id+'&node='+id, data, current_edit_node); closeModalWindow();