Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-14631

Fixed: chained jQuery calls fail when trying to select States based on Country selection in Profiles

    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

        Attachments

          Activity

            People

            • Assignee:
              timotten Tim Otten
              Reporter:
              youngjin Young-Jin Kim
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 15 minutes
                15m
                Remaining:
                Remaining Estimate - 15 minutes
                15m
                Logged:
                Time Spent - Not Specified
                Not Specified