Merge pull request #36365 from frappe/revert-35362-feat/link-route-options-from-filters

Revert "feat(link): Pre-fill new document with Link field filters"
This commit is contained in:
Ejaaz Khan 2026-01-27 15:06:49 +05:30 committed by GitHub
commit 21dcaecfec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -180,12 +180,6 @@ frappe.ui.form.ControlLink = class ControlLink extends frappe.ui.form.ControlDat
frappe.route_options = df.get_route_options_for_new_doc(this);
} else {
frappe.route_options = {};
// Reuse set_custom_query to extract filters from link_filters, get_query, and df.filters
let args = {};
this.set_custom_query(args);
if (args.filters) {
Object.assign(frappe.route_options, args.filters);
}
}
// partially entered name field