LibreHealthIO / lh-ehr

LibreHealth EHR - Free Open Source Electronic Health Records
Other
238 stars 262 forks source link

Menu Role defaults to added roles not 'no role' #1367

Open htuck opened 5 years ago

htuck commented 5 years ago

If I add a menu role at 'Admin/ Manage Roles', when I add a new usr the Menu Role dropdown shows the new role as default, with the empty dropdown list 'no role' option is at the bottom. menuroledefaultbottom Can the 'no role' option please be placed at the top of the list, i.e., as the default?

punwai commented 5 years ago

Weird... I can't seem to replicate the issue, both on demo or locally. It always starts up with Default Role even after creating a new role.

screen shot 2018-12-14 at 22 36 43
punwai commented 5 years ago

Are you sure that you are in the add user section? It seems like you are currently in the edit user section.

screen shot 2018-12-14 at 22 38 14
htuck commented 5 years ago

Yes, just now double checked. Opened the doc demo https://ehr.librehealth.io/interface/login/login.php?site=docs

as admin, went straight to Admin/ Users. Clicked 'add user' and the panel has for default the 'visiting physician' role I created for the docs.

addusr-menurole

KoniKodes commented 5 years ago

@punwai @robbyoconnor Apparently this is similar to my previous issues where it is only happening on the Docs site... Is there a way to fix it for us? Thank you in advance.

aethelwulffe commented 5 years ago

This is another issue related to the developers testing with a single entry in a table, instead of using a database that has multiple of everything. Adding extra users is the step necessary to recreate this issue.