mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Closes #4906 - Allow for override of visibility for primary-id field during create/edit.
This commit is contained in:
@@ -7835,13 +7835,13 @@ var_dump($select_options);*/
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// convert aliases - not supported in edit mod
|
// convert aliases - not supported in edit mod
|
||||||
if(vartrue($att['alias']) && !$model->hasData($key))
|
if(vartrue($att['alias']) && !$model->hasData($key))
|
||||||
{
|
{
|
||||||
$key = $att['field'];
|
$key = $att['field'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if($key === 'checkboxes' || $key === 'options' || (varset($att['type']) === null) || (varset($att['type']) === false))
|
if($key === 'checkboxes' || $key === 'options' || (varset($att['type']) === null) || (varset($att['type']) === false))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
@@ -7903,7 +7903,7 @@ var_dump($select_options);*/
|
|||||||
}
|
}
|
||||||
|
|
||||||
// type null - system (special) fields
|
// 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 = '';
|
||||||
$required_class = '';
|
$required_class = '';
|
||||||
|
Reference in New Issue
Block a user