- Issue created by @JensBNS
When using a prefix for database tables, certain functions do not behave correctly.
This issue is particularly noticeable on the SQL Dump settings page.
When a database prefix is used for example D10_, the columns for the tables do not display data, leaving the tables empty.
Additionally, trying to save the form triggers PHP warnings such as:
Warning: foreach() argument must be of type array|object, string given in Drupal\gdpr_dump\Form\SettingsForm->submitForm() (line 265 of modules/contrib/gdpr/modules/gdpr_dump/src/Form/SettingsForm.php).
The issue arises in functions that run custom queries, including getColumns()
, fetchColumnNames()
, sanitizeData()
, and others.
Modify the custom queries within the affected functions to properly handle database table prefixes.
Active
3.1
Code