BG fixes for COntainer

This commit is contained in:
2026-08-14 11:07:55 +02:00
parent 58990ebe8d
commit b08ea7a55f
3 changed files with 15 additions and 5 deletions

View File

@@ -50,7 +50,13 @@ if ($cols === []) {
}
echo "\n=== 2) The record itself (uid $uid) ===\n";
$row = $pdo->query("SELECT uid, pid, CType, deleted, hidden, sys_language_uid, l18n_parent, tx_vitec_bg_variant, tx_vitec_bg_image, tx_vitec_bg_size, tx_vitec_bg_position FROM tt_content WHERE uid = $uid")->fetch();
// Column list built from section 1 rather than hard-coded, so every tx_vitec_bg_*
// field added later shows up here without the script needing an edit.
$select = array_merge(
['uid', 'pid', 'CType', 'deleted', 'hidden', 'sys_language_uid', 'l18n_parent'],
array_column($cols, 'Field')
);
$row = $pdo->query('SELECT ' . implode(', ', $select) . " FROM tt_content WHERE uid = $uid")->fetch();
if (!$row) {
echo " no tt_content row with uid $uid\n";
} else {