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

Created on 25 March 2022, over 2 years ago
Updated 12 February 2024, 4 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

Needs review

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