=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/controllers.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/controllers.js 2015-09-21 08:48:11 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/controllers.js 2015-09-21 16:09:31 +0000 @@ -888,6 +888,7 @@ //listen for rule effect changes $scope.$on('ruleeffectsupdated', function(event, args) { $scope.warningMessages = []; + $scope.hiddenSections = []; //console.log('args.event: ', $rootScope.ruleeffects['SINGLE_EVENT'][0]); if($rootScope.ruleeffects[args.event]) { //Establish which event was affected: @@ -928,7 +929,9 @@ } } if(effect.action === "HIDESECTION") { - //get section id + if(effect.programStageSection){ + $scope.hiddenSections[effect.programStageSection] = effect.programStageSection; + } } if(effect.action === "SHOWERROR" && effect.dataElement.id){ var dialogOptions = { === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/defaultForm.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/defaultForm.html 2015-09-21 15:21:43 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/defaultForm.html 2015-09-21 16:09:31 +0000 @@ -313,7 +313,7 @@ -