$_POST['ajax_page_state']['jquery_version'] fixed jquery_version but not fixed jQuery UI version

jquery_update_jquery_replace($javascript, $cdn, $path, $min, $version); // $version are fixed inside
 if (version_compare($version, '1.6', '>=')) { // non fixed $version
    jquery_update_jqueryui_replace($javascript, $cdn, $path, $min);
  }
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Punk_UnDeaD’s picture

FileSize
1.22 KB
Punk_UnDeaD’s picture

Status: Active » Needs review
gooddesignusa’s picture

Thank you so much. Patch installed cleanly and fixed my issues.
I installed the latest dev of jquery_update the other night to take advantage of the new option to set a different jquery version for admin pages. Without this patch the file widget 'add another' for a media field would not work when editing a node. It threw jquery errors in the console b/c of the wrong jquery.ui version.

Tomefa’s picture

I just pass the last 2 hours to find a fix for this issue
And i was on my way to post it before seeing your post :)

That's a major fix for jquery_update because it makes all the ajax request working correctly.
It should be had on the next dev version.

Thanks Punk_UnDeaD

samtny’s picture

I made the same change by hand - works well for me. In my case I had jquery version "1.5" set on Admin pages, but AJAX requests were adding jquery ui 10.2 back to the page (erroneously), as the module could not determine from the ajax request that i was on an admin path.

samtny’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
yareckon’s picture

This is an important patch that we needed in production, please do add it to the dev branch as soon as possible.

sylus’s picture

Updating patch to latest dev

chr.fritsch’s picture

Works fine for me

Robin_K’s picture

Maybe its worth noting that this patch is also part of the patch in #1548028: Make the default jQuery version (1.4.4) for D7 an option

Punk_UnDeaD’s picture

Priority: Normal » Major
Punk_UnDeaD’s picture

Priority: Major » Critical
markhalliwell’s picture

Priority: Critical » Normal
Status: Reviewed & tested by the community » Closed (duplicate)