Update hook #7101 presumes table name "variable"

Created on 25 November 2019, about 5 years ago
Updated 16 November 2020, about 4 years ago

In accordion_menu.install function _accordion_menu_config_0106 there is an SQL query:

"SELECT * FROM variable WHERE name LIKE 'accordion_menu_$delta%'"

It does not take into account the possibility of a web site using prefixed table names.

🐛 Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

🇫🇮Finland Sissonen

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.

  • 🇱🇧Lebanon rida-maksour

    "SELECT * FROM variable WHERE name LIKE 'accordion_menu_$delta%'"

    Should be

    "SELECT * FROM {variable} WHERE name LIKE 'accordion_menu_$delta%'"

    To take prefix into consideration if it exists

Production build 0.71.5 2024