Encountered on Mozilla Firefox 43.0.1 on Windows 8.1
Remove Essential Meds from the list of supported programs for Confort Health Clinic
Log in as administrator
Go to the Create/Initiate screen
Select My Facility as Facility Type
Select Essential Meds from the list of available programs
Click Search button
Get Internal Application Error modal
1. The problem occurs when removing/deactivating supported program for user home facility. It appears that when getting permission string for user there still are lines that have home facility + removed supported program. Regeneration of right assignments may not be working correctly here.
2. Issue can be found also when doing steps above, selecting 'Supervised facility' and then removed program. You can see that home facility is still there.
3. Some code for the UI caching was committed here but than reverted for the release. It does not fix this issue, but when right assignment issue is fixed UI caching can still cause some problems, so restore the reverted code.