commit | 40c15348dab7e486e7cb5dce8c203fced1979a3b | [log] [tgz] |
---|---|---|
author | Faris Ansari <netchamp.faris@gmail.com> | Thu Dec 06 07:37:32 2018 +0530 |
committer | Faris Ansari <netchamp.faris@gmail.com> | Thu Dec 06 07:37:32 2018 +0530 |
tree | 79fd64b68a868eeccba83995cc62d6f9536350ef | |
parent | e3136c38e1c1ee10211a7606da4e15f97336347b [diff] |
fix(setup-wizard): Validate abbr length before switching to next slide
diff --git a/erpnext/public/js/setup_wizard.js b/erpnext/public/js/setup_wizard.js index 484d81d..75a2759 100644 --- a/erpnext/public/js/setup_wizard.js +++ b/erpnext/public/js/setup_wizard.js
@@ -97,6 +97,9 @@ if (!this.values.company_abbr) { return false; } + if (this.values.company_abbr.length > 5) { + return false; + } return true; } },