Topic: Ajax edit doesn't update on User module

I downloaded the current from GitHub today (jvinet-pronto-4c79059 folder) and installed with no fancy configurations onto a basic LAMP test server (Ubuntu, etc.).

I loaded the schema and browsed the site successfully. While playing with the User module features that are already packaged into the download, I noticed that User profile "edits" in the Ajax mode are not refreshing the user list after a change.

I have confirmed the problem occurs when browsing with both MS IE 8 and FF 3.6.2.

To replicate:
1. go to the Users screen,
2. click the Edit Item icon next to any user. The user's 2-tab edit page will appear inline on the page, ready for edits (very nice, by the way).
3. make a change to a field that shows on the user list, e.g. change Status to "pending".
4. click Update User button to commit the change.

Notice the Status of the user did not change visually when the edit "tabs" go away. It still shows the previous status.

I have confirmed that the database update is successful. If you leave the Users page and return, the Status will correctly show the new value. It is simply a matter of not getting the display line updated when the Ajax function returns.

If I get a chance to look at finding a fix for this, I'll post it here.

Thanks!

Re: Ajax edit doesn't update on User module

Thanks Keith, this is fixed now.

The key here is to set $this->ajax_reload_parent in the pUser_Admin class, so it knows to reload the page to show the new changes.  At present, the grid won't reload itself via AJAX, so a new request is made and the DOM is rendered again.