fix(map_current_doc): prevent mutation of query args in get_query (backport #52202) (#52583)

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:
mergify[bot]
2026-02-10 01:26:16 +05:30
committed by GitHub
parent eea8cb5885
commit 9519773c5c

View File

@@ -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) {