fix: render filters on refresh
onload hook gave inconsistent behaviour
This commit is contained in:
parent
246caea70e
commit
c8ea0a72d0
1 changed files with 2 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on("Prepared Report", {
|
||||
onload: function (frm) {
|
||||
render_filter_values: function (frm) {
|
||||
var wrapper = $(frm.fields_dict["filter_values"].wrapper).empty();
|
||||
|
||||
let filter_table = $(`<table class="table table-bordered">
|
||||
|
|
@ -31,6 +31,7 @@ frappe.ui.form.on("Prepared Report", {
|
|||
|
||||
refresh: function (frm) {
|
||||
frm.disable_save();
|
||||
frm.events.render_filter_values(frm);
|
||||
|
||||
// always keep report_name hidden - we do this as we can't set mandatory and hidden
|
||||
// property on a docfield at the same time
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue