Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.5
-
Fix Version/s: 4.5
-
Component/s: WordPress Integration
-
Labels:None
Description
AJAX queries for civicrm/ajax/jqState were never executed causing JavaScript errors due to eval(data) expecting JSON but instead receiving HTML. As a result State drop-downs as a result of Country choices in jQuery.chainSelects don't get called.
Not clear why there isn't a simple curl based test that tries to retrieve JSON responses for calls to civicrm/ajax/jqState? This could have been easily caught in automated testing prior to release.
I'm also not certain that all edge cases are covered in this if statement and exiting with a return statement in the middle of an invoke step is flirting with more bugs.
Pull request with fix is here:
https://github.com/civicrm/civicrm-wordpress/pull/43