-
Notifications
You must be signed in to change notification settings - Fork 21
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
Enotices #49
Comments
That's really strange. Every tab is supposed to have an id. |
@colemanw OK - it's tabs added by hook - https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_tabset/
One of the tabs comes from ExtendedReports which has a UI option to save as a tab
|
Tabs really need to have an ID. |
It's not in the spec https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_tabset/ |
But we COULD use the key as the id if not set |
@eileenmcnaughton if you look at the core code, the tabs array is not associative, so the keys are meaningless. The template is definitely expecting ids, and the only reason those hook implementations don't cause problems is that smarty suppresses php errors and browsers are quite forgiving of bad markup. So unfortunately that documentation is wrong. We should update it and extension authors should update their code. While they're doing so would be a good time for them to add an |
@colemanw OK - if you update the documentation to what you think it should be I'll update extended reports & the other extension involved |
Ug. Ug ug ug. I just looked closer and the documentation is correct, in a manner of speaking. The problem is that the array structure for tabsets is inconsistent. On the contact summary page you get a non-associative array with an Ugugugugugugugugug! |
Options:
|
@colemanw I would
|
When I go to view the contact page locally I get enotices
The text was updated successfully, but these errors were encountered: