Add a TODO
This commit is contained in:
parent
0c2306c41f
commit
f70ccfa842
1 changed files with 5 additions and 3 deletions
|
|
@ -9242,10 +9242,12 @@ abstract class CommonObject
|
|||
if (($mode == 'create') && !in_array(abs($visibility), array(1, 3))) {
|
||||
continue; // <> -1 and <> 1 and <> 3 = not visible on forms, only on list
|
||||
} elseif (($mode == 'edit') && !in_array(abs($visibility), array(1, 3, 4))) {
|
||||
// We need to make sure, that the values of hidden extrafields are also part of $_POST. Otherwise, they would be empty after an update of the object. See also getOptionalsFromPost
|
||||
// We need to make sure, that the values of hidden extrafields are also part of $_POST.
|
||||
// Otherwise, they would be empty after an update of the object. See also getOptionalsFromPost
|
||||
// TODO: We should not have this hidden field, and action='update' should be done only if field was POSTED by form.
|
||||
$ef_name = 'options_' . $key;
|
||||
$ef_value = dol_htmlentities($this->array_options[$ef_name], ENT_QUOTES | ENT_SUBSTITUTE);
|
||||
$out .= '<input type="hidden" name="' . $ef_name . '" id="' . $ef_name . '" value="' . $ef_value . '" />' . "\n";
|
||||
$ef_value = $this->array_options[$ef_name];
|
||||
$out .= '<input type="hidden" name="' . $ef_name . '" id="' . $ef_name . '" value="' . dolPrintHTMLForAttribute($ef_value) . '" />' . "\n";
|
||||
continue; // <> -1 and <> 1 and <> 3 = not visible on forms, only on list and <> 4 = not visible at the creation
|
||||
} elseif ($mode == 'view' && empty($visibility)) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue