From c8e16ab8838f939aaa7a9f6dbebd54ef1dfae046 Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Wed, 10 Mar 2021 14:30:39 +0100 Subject: [PATCH] fix(programs): request publicAccess explicitly --- src/EditModel/event-program/epics.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/EditModel/event-program/epics.js b/src/EditModel/event-program/epics.js index c17ec43d6..7dc6c6582 100644 --- a/src/EditModel/event-program/epics.js +++ b/src/EditModel/event-program/epics.js @@ -148,6 +148,9 @@ function loadEventProgramMetadataByProgramId(programPayload) { 'notificationTemplates[:owner]', 'programTrackedEntityAttributes', 'user[id,name]', + 'publicAccess', + 'userGroupAccesses', + 'userAccesses' ].join(','); // Tomcat 8.5 does not allow unencoded brackets in querystrings. By passing the query params @@ -155,7 +158,7 @@ function loadEventProgramMetadataByProgramId(programPayload) { const queryParams = { fields: ':owner,displayName', 'programs:filter': `id:eq:${programId}`, - 'programs:fields': `${programFields},programStages[:owner,user[id,name],displayName,attributeValues[:all,attribute[id,name,displayName]],programStageDataElements[:owner,renderType,dataElement[id,displayName,valueType,optionSet,domainType]],notificationTemplates[:owner,displayName],dataEntryForm[:owner],programStageSections[:owner,displayName,dataElements[id,displayName]]]`, + 'programs:fields': `${programFields},programStages[:owner, publicAccess, userGroupAccesses, userAccesses, user[id,name],displayName,attributeValues[:all,attribute[id,name,displayName]],programStageDataElements[:owner,renderType,dataElement[id,displayName,valueType,optionSet,domainType]],notificationTemplates[:owner,displayName],dataEntryForm[:owner],programStageSections[:owner,displayName,dataElements[id,displayName]]]`, 'dataElements:fields': 'id,displayName,valueType,optionSet', 'dataElements:filter': 'domainType:eq:TRACKER', 'trackedEntityAttributes:fields': 'id,displayName,valueType,optionSet,unique'