rcpch / national-paediatric-diabetes-audit

A django application to audit the care of children and young people with diabetes in England and Wales.
0 stars 1 forks source link

User information not being updated upon saving #106

Closed dc2007git closed 2 months ago

dc2007git commented 3 months ago
image

When editing a user's information, changing a field, such as 'Employing organisation', and pressing the save 'Edit NPDA User Details' button, the updated information is not persisted and saved, such that upon loading up the User List, the old information is still there, and clicking on the User to see their information also shows the old information.

dc2007git commented 3 months ago

Additionally, changing the organisation manually in the admin dashboard does not persist into the application. The test test user as above was previously part of KCH, and I went into the admin dashboard to change them to Queen's Hospital (RJ614), but this does not load in the form. In fact, the form actually says he is now part of Addenbrooke's:

image

while the information for test test in the dashboard is as follows:

image

so RJ614 IS persisted in this dashboard, and in admin, but not in the actual Update form. Additionally, PZ215 persists for this user who is, as per the Admin dashboard, part of Queen's hospital, whereas PZ215 is the PDU of King's College Hospital

mbarton commented 2 months ago

This seems to work now, although the UI does not allow you to remove an organisation.

@dc2007git please do reopen if you can reproduce or disagree that we should close this