Skip to content

Commit

Permalink
Fixed javascript error on adminhtml login page caused by #2149 (#2624)
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano authored Sep 29, 2022
1 parent 1373cb5 commit 111a92f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/mage/adminhtml/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,4 +611,6 @@ function setPostcodeOptional(zipElement, country) {
}
}

varienGlobalEvents.attachEventHandler("address_country_changed", onAddressCountryChanged);
if (typeof varienGlobalEvents != 'undefined') {
varienGlobalEvents.attachEventHandler("address_country_changed", onAddressCountryChanged);
}

0 comments on commit 111a92f

Please sign in to comment.