-
-
Notifications
You must be signed in to change notification settings - Fork 213
Sensitive formwidget: add getLoadValue() method #1329
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
base: develop
Are you sure you want to change the base?
Conversation
I added a sensitive field to the Winter.Test plugin here to help with this: wintercms/wn-test-plugin@eacde47 |
I might have found a way to fix this in the Sensitive formWidget itself, but I need to be able to access the model's data and I'm missing something... I need to override the |
This reverts commit 1c384d5.
@jaxwilko can you test this fix ? Feel free to provide feedback. |
@mjauvin I'm going to have to take a stab at fixing this myself, a FormWidget shouldn't be reaching directly into a model to grab a value, there's too many assumptions there that could go wrong. |
@mjauvin I tested and this does work :) |
@LukeTowers the RecordFinder formwidget does this as well. |
Fixes #1321