Autogenerated rest of array in availableFields as far as possible
This commit is contained in:
parent
bb2f3a6d40
commit
e1c7313ca0
@ -691,4 +691,29 @@ array ('illustrated_where_sure2', 'n', ''),
|
||||
array ('illustrated_annotation2', 'n', ''),
|
||||
);
|
||||
|
||||
return;
|
||||
|
||||
foreach ($allowed as $values) {
|
||||
for ($i = 2; $i < 10; $i++) {
|
||||
if (empty($values[$i])) $values[$i] = "";
|
||||
}
|
||||
|
||||
echo '
|
||||
"' . $values[0] . '" => [';
|
||||
if ($values[1] == "y") echo '
|
||||
"required" => true,';
|
||||
else echo '
|
||||
"required" => false,';
|
||||
echo '
|
||||
"allowedValues" => \'' . $values[3] . '\',';
|
||||
if ($values[4] !== 'none' and !empty($values[4])) echo '
|
||||
"dependsOn" => [\'' . $values[4] . '\'],';
|
||||
echo '
|
||||
"remark" => \'' . $values[5] . '\',
|
||||
"name_human_readable" => $object_basis[\'inventory_number\'],
|
||||
"explica" => $object_basis[\'inv_explica\'],
|
||||
],';
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user