Unverified Commit f0c93ce7 authored by Jerome Boucher's avatar Jerome Boucher Committed by Jerome Boucher
Browse files

Merge branch 'fix/16917_missing_front_indicator_for_required_field' into 'develop'

fix/16917 : fix archivalProfile miising information displayed

See merge request !665
parent db7bba4f
......@@ -115,7 +115,8 @@ class welcome
$archiveDescriptions = \laabs::callService('recordsManagement/archivalProfile/readByreference_reference_', $archivalProfile->reference)->archiveDescription;
$archivalProfiles[$key]->archiveDescription = $archiveDescriptions;
$archivalProfiles[$key]->searchFields = [];
foreach ($archivalProfile->archiveDescription as $archiveDescription) {
foreach ($archivalProfile->archiveDescription as $k => $archiveDescription) {
$archivalProfiles[$key]->archiveDescription[$k]->readonly = $archiveDescription->isImmutable;
switch ($archiveDescription->descriptionField->type) {
case 'text':
case 'name':
......
......@@ -238,6 +238,8 @@ input:invalid {
addArchiveDescription : function(archiveDescription) {
var descriptionField = archiveDescription.descriptionField;
descriptionField.required = archiveDescription.required;
descriptionField.readonly = archiveDescription.readonly;
var target = $("#archivalProfileFields");
var formGroup = Metadata.getFormGroup(descriptionField);
target.append(formGroup);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment