Skip to content

Commit

Permalink
bp: fix saving regex filter
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Jul 9, 2024
1 parent 2cf8290 commit 1e1bd26
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions plugins/plugins-available/business_process/root/bp-3.14.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1e1bd26

Please sign in to comment.