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

This commit is contained in:
V Shankar
2026-02-10 00:16:59 +05:30
committed by GitHub
parent 7b197cbe1c
commit 23a73c9cdb

View File

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