BG fixes for COntainer
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user