Include Chosen only on front end pages do not work properly

Created on 22 January 2018, about 7 years ago
Updated 27 April 2023, almost 2 years ago

When option "Include Chosen only on front end pages" is selected. Chosen only load library for people which can use admin theme different that main theme. For example anonymous user has "my custom theme" like front end theme and admin theme.
$is_admin = path_is_admin(current_path()) || current_path() == 'system/ajax' || $theme == variable_get('admin_theme');
var $is_admin always is 1 in this case

if ($chosen_include != CHOSEN_INCLUDE_EVERYWHERE && $is_admin == $chosen_include) {
    return $element;
  }

and $chosen_include is 1 when option "Include Chosen only on front end pages" is check.

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡΅πŸ‡±Poland lamp5 Rzeszow

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States AaronBauman Philadelphia

    I'll add:
    "front end pages" as defined by the "admin route" flag does not properly account for front-end pages which are available to end users.

    For example, the user edit page or a publicly available node/add or node/edit page are both "admin route" pages, so this option incorrectly excludes chosen from those pages.

Production build 0.71.5 2024