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)
Issue fork view_custom_table-3271606
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3271606-second-try
changes, plain diff MR !26
- 2.0.x
compare
- 3271606-dont-use-hardcoded
changes, plain diff MR !9
Comments
Comment #3
lobsterr commentedin some cases we can have multiple DB connections, in addition not all DB connections have 'database' key:
p.s. I fixed small misspells and improve a bit code style.
Comment #4
lobsterr commentedComment #8
joseph.olstadPlease test and review this patch
https://git.drupalcode.org/project/view_custom_table/-/merge_requests/26...
Comment #9
lobsterr commentedI have tested it. Looks ok for me!
Comment #10
joseph.olstadin 2.0.x dev
Comment #12
joseph.olstadhttps://www.drupal.org/project/view_custom_table/releases/2.0.6
Comment #13
joseph.olstadTagged and released 2.0.6 thanks again!