From 23a73c9cdba6e070278e4d73be047024aa806a4c Mon Sep 17 00:00:00 2001 From: V Shankar Date: Tue, 10 Feb 2026 00:16:59 +0530 Subject: [PATCH] fix(map_current_doc): prevent mutation of query args in get_query (#52202) --- erpnext/public/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index 355dadbc534..08b745d2c32 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js @@ -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) {