-
-
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
com_fields custom field in com_user does not respond to setFieldAttribute in frontend #18427
Comments
|
This is fun - it occurred to me to trigger a log when the FieldsHelper::prepareForm method was executed. Adding PHP message: prepareForm0.75458500 1509635643 The FormHelper::prepareForm method is being executed twice. I get this log in the backend: PHP message: prepareForm0.28052000 1509636249 Something in the frontend is causing FieldsHelper::prepareForm to execute twice. |
debug_backtrace shows that in the frontend it's being executed in:
|
It could be related to this PR #18211. If yes, please test and submit your result. |
Thanks @Quy - that's the exact change I just tested! Commenting out those two lines resolved the issue double processForm issue - but I was beginning to test for side effects. |
I'll keep an eye on that issue while I continue to investigate mine. If I determine that to be the fix, I'll close this issue. |
plugin.zip
Steps to reproduce the issue
Expected result
Field is altered in the frontend and the backend
Actual result
field is only altered in the backend
System information (as much as possible)
J3.8.1, fresh install, mariadb, PHP7.1-FPM, and I had a hamburger for dinner last night...it was delicious.
Additional comments
I have executed print_r($form->getFieldXML($field,'com_fields')['class']); before and after I made the change and the xml reflects the change - but the output doesn't. I've tried several types of changes, just to be sure I see what I think I'm seeing and the result is always the same - it works in the backend but not the frontend.
One interesting bit - when I $form->removeField('fieldname','com_fields') - the field doesn't disappear -
it moves to the bottom of the fieldgroup. I thought that was very odd.
The text was updated successfully, but these errors were encountered: