libraries_get_path() can return bool

Created on 13 January 2023, over 1 year ago
Updated 22 May 2023, about 1 year ago

Problem/Motivation

In case the module is enabled, but the file is not where the libraries API module expects to find it, then libraries_get_path() returns false, which breaks _slim_select_get_path() signature

Steps to reproduce

enable libraries api module, make sure there is not slim select in its expected folders, apply the #slim_select to a multiple select, check the form page.

Proposed resolution

change from
add the result of libraries_get_path('slim-select') into a variable and check the result before returning

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡·πŸ‡΄Romania Andras_Szilagyi

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.

Production build 0.69.0 2024