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.0] Fix custom fields on Contact Form #35763
[4.0] Fix custom fields on Contact Form #35763
Conversation
Good morning I had already communicated that I had tested the solution that turned out to be working. In the last release of Joomla, i.e. version 4.0.3, has the reported bug been fixed? Thank you |
@GennaroMarra Each PR needs two successful tests to be merged. Please go to https://issues.joomla.org/tracker/joomla-cms/35763 and report your test result. Then we will need to have one more test before it could be merged. |
The test was successful. Thanks. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35763. |
Hi, I was testing this issue but I have not been able to reproduce the error. Cheers, This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35763. |
@BertaOctech Thanks for testing. When you access to first menu item, the system will display custom fields from first contact category properly. However, when you access to the second menu item, you will see custom fields from first category (which is wrong - it should display custom fields from second category). Could you please try again one more time? Thanks ! |
Yes, agree with @BertaOctech. Not able to show custom field value from one contact in the other one. Thank you and best regards This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35763. |
Hi, thanks for your comment. Maybe this issue was solved via another issue, sometimes this happen. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35763. |
@BertaOctech Thanks for testing. Strange that you see it work properly. It is still not working, maybe someone you can test it and confirm later (I can still see it from current code by code reading) |
In testing instructions is necessary to add another step: after create new contacts, fill each field with a different value, right? I've created a Calendar field for Category 1 and Color for Category 2. Should the fields be the same type? Thanks |
@pabloarias This issue happens with custom fields display on contact form, so you do not need to enter data for these custom fields for contact. Maybe you can try to look at the original issue #35609 , it might describes the issue better than what I described here |
Ok, I understand now. Custom fields are for mail form, not for contact. I see the problem. I'm really sorry but after applying the path, it continues failing. One question: why these fields are shown as disabled in frontend form? Thank you very much! This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35763. |
The testing instructions should be more clear. We need to create custom fields for Mail, not to Contact for this PR.
That's strange to me. I don't see how it could still fail after the patch.
It's something with permission settings. You need to edit the field, look at Permissions tab, select Public user group and set Edit Custom Field Value permission to Allowed. After that, all users should be allowed to enter value for that field. Thanks for your help with testing. |
Hey, even I tried to test the same but it didn't work out for me as well. I think that the test instructions are to be more clear. |
I have tested this item 🔴 unsuccessfully on e919da6 The error is different but remains equal This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35763. |
I have tested this item 🔴 unsuccessfully on e919da6 What I did:
Before the patch: When you click on the "Contact left" menu item the contact form shows with the "cfield-left" field. Next when you click on the "Contact right" menu item the field "cfield-left" remains. After clicking a second time or after a page refresh the custom fields updates to the correct one. After the patch: Only one of the fields is loaded even when switching menu items an refreshing / clicking multiple times. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35763. |
@RickR2H and others: I think I know why your tests were un-successful. The So somehow, after applying patch. We need to clear existing session data to have the right behavior:
|
This works!. I have tested it in the following scenarios: A classic form and an appointment form with extra fields, and 2 forms with custom fields of type Mail. The forms are in different categories and have different menu items. For those that don't work, you can clear your browser's cache and cookies or try it from another browser. |
Works like expected, thanks Tuan. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35763. |
Thx |
Pull Request for Issue #35609, #36961, #36956.
Summary of Changes
This PR fixes issue #35609 by removing unnecessary code from view class:
Testing Instructions
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Please note that after applying patch, you should closer your browser and re-open it to clear existing session data (or better, use a different browser to test the new behavior).