dev/core#4480 Fix MailSettings add path #27018
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
#26733 and prior PRs changed the path for adding a new Mail Account from
civicrm/admin/mailSettings?action=add&reset=1
usingCRM_Admin_Page_MailSettings
tocivicrm/admin/mailSettings/edit?action=add&reset=1
usingCRM_Admin_Form_MailSettings
. The Add Mail Account button URL was not changed, so Add was still using the Page class while Edit was using the Form class with the result that the help didn't work while editing, but did work while adding.Before
Inconsistent paths / classes so help didn't work.
After
Consistent paths / classes, no more including the Form in the Page.
Also, I noticed that oauth-client needed the same path update. This seems to be the only other use of this path in universe.
Comments
Have not tested the oauth-client change as I'm not familiar with this.
The regression is in 5.64, but this seems pretty minor, so might be good enough just to fix in 5.65.