-
Notifications
You must be signed in to change notification settings - Fork 13
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
Investigate adding rule to detect FormField types from dataFieldByValue #3
Labels
Comments
@silbinarywolf can you please confirm if this is still an issue? I noticed heaps of commit references above, but they seem unrelated? |
Incidentally this discussion relates: silverstripe/silverstripe-framework#9659 In the end it seems like doing this was preferred to adding more code to core for this: $field = $fieldList->fieldByName('MyTable');
assert($field instanceof GridField);
$field->getConfig()->bla... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently get errors like:
When using $fields->dataFieldByValue('Name'); wherein 'Name' is a GridField.
Would like to see if I can add some complex checks so that the correct type can be determined.
EDIT: I might look into executing
scaffoldFormFields
directly on asingleton()
so that the exact form fields and structure are retained.The text was updated successfully, but these errors were encountered: