From 2f4fdf9520301d25ea79f8ff6e7601b47427cedf Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 6 Nov 2022 09:16:25 -0800 Subject: [PATCH] Closes #4906 - Allow for override of visibility for primary-id field during create/edit. --- e107_handlers/form_handler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index a11926071..171fb4500 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -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 = '';