-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dev/core#2215 & remove the tab selection inline script from TabHeader.tpl #19066
Conversation
(Standard links)
|
I did an r-run of this and confirmed that it works for Contribution Pages and fixes the Campaign Dashboard links. @colemanw does this need to be against the RC or is this regression old enough it isn't 'recent'? |
@colemanw This seems to break messagetemplates admin UI: |
@mattwire - indeed, that screen was relying on a messy artifact of |
@colemanw test fail looks related |
This is part of ongoing cleanup to get the logic for selecting default tab out of the tpl, which was redundant with the logic already in tabHeader.js.
@mattwire @seamuslee001 have the issues been addressed now? |
Yes, thanks @colemanw |
The removal of |
@demeritcowboy I knew there was somewhere else that broke when stuff changed! I think @colemanw is on top of how this is meant to work and we probably need a small PR to fix the extensions admin screen? |
Overview
Removes some redundant code that was selecting the default tab twice. https://lab.civicrm.org/dev/core/-/issues/2215
Before
Default tab set by
tabHeader.js
and then set again (sometimes incorrectly) byTabSelected.tpl
.In the case of Campaigns/Surveys, it was incorrect.
After
Default tab set just once.
Technical Details
This mostly gets the logic for selecting default tab out of the tpl. The final step would be to delete
CRM/common/TabSelected.tpl
and all references to it and the variables it uses.