Skip to content

Commit

Permalink
Closes #4906 - Allow for override of visibility for primary-id field …
Browse files Browse the repository at this point in the history
…during create/edit.
  • Loading branch information
CaMer0n committed Nov 6, 2022
1 parent c50d1cf commit 2f4fdf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e107_handlers/form_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -7835,13 +7835,13 @@ public function renderCreateFieldset($id, $fdata, $model, $tab=0)
{
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;
Expand Down Expand Up @@ -7903,7 +7903,7 @@ public function renderCreateFieldset($id, $fdata, $model, $tab=0)
}

// 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 = '';
Expand Down

0 comments on commit 2f4fdf9

Please sign in to comment.