mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
94031: Fix findById for concat fields
As far as I can tell the suffix is never used with a numeric part, causing this branch to always miss concat group fields
This commit is contained in:

committed by
Yury Bondarenko

parent
342a712513
commit
d88352f513
@@ -116,8 +116,8 @@ export class FormBuilderService extends DynamicFormService {
|
||||
}
|
||||
|
||||
if (this.isConcatGroup(controlModel)) {
|
||||
if (controlModel.id.match(new RegExp(findId + CONCAT_GROUP_SUFFIX + `_\\d+$`))) {
|
||||
result = (controlModel as DynamicConcatModel).group[0];
|
||||
if (controlModel.id.match(new RegExp(findId + CONCAT_GROUP_SUFFIX))) {
|
||||
result = (controlModel as DynamicConcatModel);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user