1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

Closes #4906 - Allow for override of visibility for primary-id field during create/edit.

This commit is contained in:
Cameron 2022-11-06 09:16:25 -08:00
parent c50d1cf34c
commit 2f4fdf9520

View File

@ -7835,13 +7835,13 @@ var_dump($select_options);*/
{
continue;
}
// convert aliases - not supported in edit mod
if(vartrue($att['alias']) && !$model->hasData($key))
{
$key = $att['field'];
}
if($key === 'checkboxes' || $key === 'options' || (varset($att['type']) === null) || (varset($att['type']) === false))
{
continue;
@ -7903,7 +7903,7 @@ var_dump($select_options);*/
}
// type null - system (special) fields
if(vartrue($att['type']) !== null && !vartrue($att['noedit']) && $key != $model->getFieldIdName())
if(!empty($att['writeParms']['visible']) || ( vartrue($att['type']) !== null && !vartrue($att['noedit']) && $key != $model->getFieldIdName()))
{
$required = '';
$required_class = '';