I have a local copy of openmrs standalone app running on my local system. But whenever you delete one of the core roles, say: Organisational: Doctor, an error pops up on page:
An Internal Error has Occurred org.hibernate.ObjectNotFoundException No row with the given identifier exists: [org.openmrs.Role#Organizational: Doctor]
Although, after refresh, everything then shows up correctly. Can we fix this bug?
Another thing I noticed is that when you delete any of those roles, (e…g Organisational: Nurse) and restarts your app, it gets re-populated again, with default privileges. I guess this would be an issue when the app gets deployed.
@osagie.ehigiato, note that the Reference Demo Data module automatically
creates these rows at startup, so if by “refresh” you mean that you restart
tomcat, then the error stop showing up because the data you deleted was
recreated.
So you should remove the Reference Demo Data module before you try deleting
those roles.
-Darius
···
On Tue, Mar 15, 2016 at 10:10 AM, osagie ehigiato wrote:
I have a local copy of openmrs standalone app running on my local system.
But whenever you delete one of the core roles, say: Organisational: Doctor,
an error pops up on page:
An Internal Error has Occurred
org.hibernate.ObjectNotFoundException
No row with the given identifier exists: [org.openmrs.Role#Organizational:
Doctor]
Although, after refresh, everything then shows up correctly. Can we fix
this bug?