Drupal's default jQuery doesn't get called when the CDN and jQuery options in the theme settings are left at their default values.

Here's the portion of template.php causing the issue:

else {
    // If a CDN is not selected, but an updated version still wants to be used.
    $js['misc/jquery.js']['data'] = "$path_to_theme/js/jquery-$version.min.js";

It doesn't check if the default jQuery is in play and automatically looks for the file in Aurora's folder.

#1 wrong-default-jquery.patch471 bytesbxtaylor
PASSED: [[SimpleTest]]: [MySQL] 0 pass(es).
[ View ]


bxtaylor’s picture

Status:Active» Needs review
new471 bytes
PASSED: [[SimpleTest]]: [MySQL] 0 pass(es).
[ View ]

And here's a patch...

iamcarrico’s picture

Status:Needs review» Needs work

The code shouldn't even be getting to that point. This is a truthyness error earlier on (line 425). Will investigate.

iamcarrico’s picture

Status:Needs work» Fixed

Aaaannndddd fixed.

Updated code in latest 7.x-2.x

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.