Dear all,
I am working with version 2.30 build 20b9ccf.
Recently all the Hide fields program rules stopped working. I am not sure what might have triggered this or how to fix it.
So far, we have attempted recreating some of these rules (as they are many) but it is not working.
We are sure the rules are correct because it used to work correctly until yesterday and it still shows the right prompt when trying to hide a field that has been filled but the hide function does not work anymore.
We made some changes to the program during the weekend and are not sure what (if anything) might have triggered this.
This is the error I get from my browser:
TypeError: Cannot read property 'id' of undefined
at dhis2.angular.services.js:3206
at Object.r [as forEach] (angular.js:331)
at Object.processRuleEffectsForEvent (dhis2.angular.services.js:3183)
at Object.processRuleEffectAttribute (dhis2.angular.services.js:3279)
at registration-controller.js:766
at n.$broadcast (angular.js:14785)
at dhis2.angular.services.js:2879
at angular.js:13248
at n.$eval (angular.js:14466)
at n.$digest (angular.js:14282)
I am failing to move further since I am not familiar with this kind of errors.
Please any suggestions on how to troubleshoot or fix this would be greatly appreciated.
Thanks.
Best regards,
U’aa