mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-12 17:23:38 +00:00
fix(map_current_doc): prevent mutation of query args in get_query (#52202)
This commit is contained in:
@@ -989,7 +989,7 @@ erpnext.utils.map_current_doc = function (opts) {
|
||||
}
|
||||
|
||||
if (query_args.filters || query_args.query) {
|
||||
opts.get_query = () => query_args;
|
||||
opts.get_query = () => JSON.parse(JSON.stringify(query_args));
|
||||
}
|
||||
|
||||
if (opts.source_doctype) {
|
||||
|
||||
Reference in New Issue
Block a user