Skip to content
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 Inputfield::getConfigInputfields unable to access its field #82

Closed
wants to merge 1 commit into from
Closed

Conversation

abdusco
Copy link

@abdusco abdusco commented Aug 17, 2017

Hooking into Inputfield::getConfigInputfields, you cannot access any information about the field within the context in which it's used. This fixes it so that Fieldtype::getConfigInputfields, Inputfield::getConfigInputfields and getConfigAllowContext can get the field as the parameter and access field settings related to a certain Fieldgroup.

I've discussed the issue and the fix in this forum post.
https://processwire.com/talk/topic/16987-getting-fieldgroup-specific-settings-for-an-inputfield-inside-a-hook/

Hooking into Inputfield::getConfigInputfields, you cannot access any information about the field within the context in which it's used. This fixes it so that `Fieldtype::getConfigInputfields`, `Inputfield::getConfigInputfields` and `getConfigAllowContext` can get the field as the parameter and access field settings related to a certain Fieldgroup.

I've discussed the issue and the fix in this forum post.
https://processwire.com/talk/topic/16987-getting-fieldgroup-specific-settings-for-an-inputfield-inside-a-hook/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant