Don't use hardcoded $connection['default']['database'] on view custom table form

Created on 25 March 2022, over 2 years ago
Updated 20 August 2024, 3 months ago

In some projects database configuration can be different then $connection['default']['database'] or there are could be different version of databases. This is the case for us and we face this warning:

Notice: Undefined index: database in Drupal\view_custom_table\Form\AddViewsCustomTable->buildForm() (line 106 of /var/www/html/web/modules/contrib/view_custom_table/src/Form/AddViewsCustomTable.php)
πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium lobsterr

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

Merge Requests

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.71.5 2024