=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/scripts/services.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/scripts/services.js 2014-12-15 14:00:36 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/scripts/services.js 2015-09-23 08:17:21 +0000 @@ -1,3 +1,5 @@ +/* global angular */ + 'use strict'; /* Services */ === 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-23 08:06:55 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/controllers.js 2015-09-23 08:17:21 +0000 @@ -922,12 +922,12 @@ $log.warn("ProgramRuleAction " + effect.id + " is of type HIDEFIELD, bot does not have a dataelement defined"); } } - if(effect.action === "HIDESECTION") { + if(effect.action === "HIDESECTION" && effect.ineffect) { if(effect.programStageSection){ $scope.hiddenSections[effect.programStageSection] = effect.programStageSection; } } - if(effect.action === "SHOWERROR" && effect.dataElement.id){ + if(effect.action === "SHOWERROR" && effect.ineffect && effect.dataElement.id){ var dialogOptions = { headerText: 'validation_error', bodyText: effect.content @@ -936,7 +936,7 @@ $scope.currentEvent[effect.dataElement.id] = $scope.currentEventOriginialValue[effect.dataElement.id]; } - if(effect.action === "SHOWWARNING"){ + if(effect.action === "SHOWWARNING" && effect.ineffect){ $scope.warningMessages.push(effect.content); } }