User tests: Successful: Unsuccessful:
This PR fixes an issue appearing when ajax-based form elements are present on the user profile form. Ajax calls made through use of com_ajax return profile editing pages instead of whatever they're meant to return, potentially breaking the form.
Please note there's no such elements in vanilla Joomla setup, but they may be added with custom user profile plugins (example: states/provinces dropdown list refreshing on country change, async loading of transactions history from 3rd party resources etc.)
Pull Request for Issue # n/a
Added a check for com_ajax to stop redirections to profile for ajax calls
requires custom user plugin/s with ajax-based form elements (the issue only affects such elements)
ajax calls returning their payload (json structures, html, etc.)
ajax calls returning profile editing page html
n/a
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
Category | Front End Plugins | ⇒ | Libraries Front End Plugins |
Category | Front End Plugins Libraries | ⇒ | Front End Plugins |
Category | Front End Plugins | ⇒ | Unit Tests Administration com_admin SQL Postgresql MS SQL com_categories com_config com_contact com_content com_fields com_joomlaupdate |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-06-13 10:08:29 |
Closed_By | ⇒ | tgv604 | |
Labels |
Added:
?
|
To clarify: one of my sites with privacy plugin enabled has also an address profile tab with nice dynamic country & states dropdowns, which work through com_ajax -- and they completely mess up the form when the privacy consent isn't given yet.