fix:non editable fields must not be editable in creation either
This commit is contained in:
parent
8dbc0ff040
commit
26f280b74b
@ -56,7 +56,8 @@ foreach ($object->fields as $key => $val)
|
|||||||
if (in_array($val['type'], array('int', 'integer'))) $value = GETPOST($key, 'int');
|
if (in_array($val['type'], array('int', 'integer'))) $value = GETPOST($key, 'int');
|
||||||
elseif ($val['type'] == 'text' || $val['type'] == 'html') $value = GETPOST($key, 'none');
|
elseif ($val['type'] == 'text' || $val['type'] == 'html') $value = GETPOST($key, 'none');
|
||||||
else $value = GETPOST($key, 'alpha');
|
else $value = GETPOST($key, 'alpha');
|
||||||
print $object->showInputField($val, $key, $value, '', '', '', 0);
|
if ($val['noteditable']) print $object->showOutputField($val, $key, $value, '', '', '', 0);
|
||||||
|
else print $object->showInputField($val, $key, $value, '', '', '', 0);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user