Add fields for linked objects

phpcs-errors:241 phpunit-status:successful
This commit is contained in:
Joshua Ramon Enslin 2020-06-18 17:38:00 +02:00 committed by Stefan Rohde-Enslin
parent 8c8449e92a
commit 61854030ff

View File

@ -689,6 +689,7 @@ $availableFields = [
],
],
$overview['links'] => [],
$overview['links'] . ": " . $basis['single_object'] => [],
$basis['literature'] => [],
$basis['objectgroup'] => [],
$overview['tags'] => [],
@ -761,6 +762,30 @@ for ($i = 1; $i <= 2 * $fieldNoMultiplicator; $i++) {
}
for ($i = 1; $i <= 2 * $fieldNoMultiplicator; $i++) {
$availableFields[$overview['links'] . ": " . $basis['single_object']] = array_merge($availableFields[$overview['links'] . ": " . $basis['single_object']],
[
"linked_obj_invno{$i}" => [
"required" => false,
"allowedValues" => [],
"dependsOn" => ["linked_obj_show{$i}"],
"remark" => '',
"name_human_readable" => "Inventarnummer des verknüpften Objektes",
"explica" => "",
],
"linked_obj_show{$i}" => [
"required" => false,
"allowedValues" => [],
"dependsOn" => ["linked_obj_invno{$i}"],
"remark" => '',
"name_human_readable" => "Verknüpftes Objekt: Text",
"explica" => "",
],
]);
}
for ($i = 1; $i <= 5 * $fieldNoMultiplicator; $i++) {
$availableFields[$basis['literature']] = array_merge($availableFields[$basis['literature']],