fix: clean up user selections from print_settings after callback()
This commit is contained in:
parent
e353136f88
commit
cc32eb1f07
1 changed files with 4 additions and 0 deletions
|
|
@ -104,6 +104,10 @@ frappe.ui.get_print_settings = function (
|
|||
}
|
||||
|
||||
callback(settings);
|
||||
// clean up user selections from settings
|
||||
columns
|
||||
.filter((d) => d.fieldname in settings)
|
||||
.forEach((d) => delete settings[d.fieldname]);
|
||||
},
|
||||
__("Print Settings")
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue