-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[4.2] contact fields remove layout override #37716
Conversation
@brianteeman I will deal with it. |
This pull requests has been automatically converted to the PSR-12 coding standard. |
looks like the psr12 pull requests completely messed up this pr :( |
ede4738
to
549de52
Compare
fixed the issues from the psr12 pr |
I have tested this item ✅ successfully on ba7d87f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37716. |
1 similar comment
I have tested this item ✅ successfully on ba7d87f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37716. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37716. |
@brianteeman Could you solve the conflict? Thanks in advance. |
ba7d87f
to
31be7bc
Compare
done as requested |
RTC is still valid because the commit after the human tests was a clean conflict resolution. The conflict was in file "render.php" and came from PR #39616 , which changed array syntax in that file which is then removed with this PR here. |
Thank you! :) |
This reverts commit 982be1e.
This pr broke the way custom fields are rendered in mails. Now the contain the HTML code as when they get rendered in a web page. Please test #40557 which restores the old behavior while keeping the new feature from this pr when rendered in a web page. |
com_contact has two types of fields mail and contact. mail are for fields that are added to the contact form. contact is for fields that are displayed with the contact details.
at some point in time a layout override was added for this. Its fubar and not actually needed because the rendering of the different field contexts is already handled in the views (defaulkt_form and default_custom_user_fields)
the main issues caused by these overrides is that the contact fields are not rendered the same as they would have been for an article (dt not dl) and the display of subforms is obviously completely wrong.
Steps to reproduce the issue
1. Com content
2. com contact - context contact
3. com contact - context mail
4. test
Expected result
Fields are displayed the same across the two components
Actual result
com_contact has a field layout override that uses a dl etc instead of a ul AND the subform display is fubar
com_content
com_contact
After PR
Additional comments
@richard67 I cant remember if i am supposed to add these removed files to script.php or if you deal with it?
@bembelimen @roland-d to me this is a bug fix and should be in 4.1 but I suspect you will say it needs to go in 4.2?