Skip to content

Commit

Permalink
Merge pull request #2634 from resilient-tech/mergify/bp/version-15-ho…
Browse files Browse the repository at this point in the history
…tfix/pr-2631

fix: do not set options for non Autocomplete field (backport #2631)
  • Loading branch information
ljain112 authored Sep 21, 2024
2 parents 97c1d77 + 58ab922 commit 53e0fcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions india_compliance/gst_india/client_scripts/party.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ async function set_gstin_options(frm) {

frm._gstin_options_set_for = frm.doc.name;
const field = frm.get_field("gstin");
if (!field || field.df.fieldtype != "Autocomplete") return;
field.df.ignore_validation = true;
field.set_data(await india_compliance.get_gstin_options(frm.doc.name, frm.doctype));
}
Expand Down

0 comments on commit 53e0fcb

Please sign in to comment.