Skip to content
Snippets Groups Projects

fixes #4434 Disable special column names starting without underscore

Files
2
@@ -216,7 +216,11 @@ class DatabaseUpdate {
// FORM ELEMENTS FormElement.value, FormElement.note
$message_ttc = '';
$res = $this->db->sql("SELECT fe.id, fe.name, fe.value, fe.note FROM FormElement as fe WHERE fe.type='note' AND fe.value LIKE '#!report%' OR fe.note LIKE '%#!report%';");
if (defined('PHPUNIT_QFQ')) {
$res = array();
} else {
$res = $this->db->sql("SELECT fe.id, fe.name, fe.value, fe.note FROM FormElement as fe WHERE fe.type='note' AND fe.value LIKE '#!report%' OR fe.note LIKE '%#!report%';");
}
foreach ($res as $i => $tt_content) {
foreach (['value', 'note'] as $j => $columnName) {
Loading