#75647hardcoded "hidden" col in backend/form creates wrong SQL
Description
Hello Core-Team,
if you have a record with an inline-relation to be_users and that inline record is collapsed (<—-notloaded—> in HTML-comment) and you save that record, then a SQL-Error appears: col “hidden” not found in be_users.
In InlineRecordContainer.php you’re working with hardcoded “hidden” cols:
PS: If you save the record with expanded inline-records it works like expected.
if (!$data['isInlineChildExpanded']
&& !empty($GLOBALS['TCA'][$foreignTable]['ctrl']['enablecolumns']['disabled'])
) {
$checked = !empty($record['hidden']) ? ' checked="checked"' : '';
$html .= '<input type="checkbox" data-formengine-input-name="data'
. htmlspecialchars($appendFormFieldNames)
. '[hidden]" value="1"' . $checked . ' />';
$html .= '<input type="input" name="data' . htmlspecialchars($appendFormFieldNames)
. '[hidden]" value="' . htmlspecialchars($record['hidden']) . '" />';
}
Stefan