When building make file in custom profile library is not found since its located at the profile library path.
function "chosen_get_chosen_path" would need to check also this

soulution would be:

$profile = drupal_get_profile();

and extra check

elseif (file_exists("profiles/$profile/libraries/chosen/chosen.jquery.min.js")) {
$path = 'profiles/$profile/libraries/chosen';
}

Comments

primozsusa’s picture

StatusFileSize
new740 bytes
azovsky’s picture

Status: Needs review » Reviewed & tested by the community

Patch library_path_profile-2125523-1.patch is working. Thanks!

nadavoid’s picture

StatusFileSize
new1.12 KB

I need to get this going on a site that did not have the libraries module, and found that this patch needed a couple more adjustment. In the last elseif, double-quotes needed to be used instead of single-quotes, so that the variable could be replaced. Also, chosen_library() was using the wrong path if the libraries module was absent. Those are taken into account in the attached patch.

dave reid’s picture

Version: 7.x-2.0-alpha4 » 7.x-2.x-dev
Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.66 KB

Rerolled for current 7.x-2.x.

dave reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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