mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 01:34:10 +00:00
fix(map_current_doc): prevent mutation of query args in get_query (#52202)
(cherry picked from commit 23a73c9cdb)
Co-authored-by: V Shankar <shankarv292002@gmail.com>
This commit is contained in:
@@ -974,7 +974,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