Skip to content

Commit 0a34eda

Browse files
authored
Merge pull request #196 from praveenKDass/release-5.1.0
hotFixes:form config issue
2 parents 298f4e6 + 32ce810 commit 0a34eda

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

generics/constants/common.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,6 @@ module.exports = {
7272
"PROFILE_CONFIG_FORM_KEY" : "profileConfig_v2",
7373
"SERVER_TIME_OUT" : 5000,
7474
"CERTIFICATE" : "certificate",
75-
"ORACLE_CLOUD_SERVICE" : "OCI"
75+
"ORACLE_CLOUD_SERVICE" : "OCI",
76+
"PERSONA":"persona"
7677
};

generics/services/form.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ const configForStateLocation = function ( stateLocationCode, entityKey ) {
2828
result : []
2929
})
3030
}
31-
32-
let subEntityData = subEntitiesDetails.data.form.data.fields[1].children.teacher;
31+
let subEntityData = subEntitiesDetails.data.form.data.fields.filter((fieldInstance)=>{
32+
return fieldInstance.code == constants.common.PERSONA
33+
})[0].children.administrator;
3334
//Entity type is stored in a key called code
3435
let subEntities = subEntityData.map( subEntity => {
3536
return subEntity.code;

0 commit comments

Comments
 (0)