This is probably related to other bug reports, but is a different widget, so I'll report it here. When I try to create a userference field I get several errors:
warning: Missing argument 3 for userreference_field_settings() in [drupal path]\modules\cck\userreference.module on line 31 (repeated multiple times on different screens)
warning: Invalid argument supplied for foreach() in [drupal path]\modules\cck\content.module on line 787.
I continue to get the error on line 31 whenever I I try to manage or edit that field on the content types management screen, but I no longer see a message about an error on line 787 after the field is created.
The field is created in spite of the error and appears on the node input form.
My steps:
1) install module
2) create content type
3) add several fields of different types
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | node_user_reference.patch | 1.24 KB | RayZ |
Comments
Comment #1
RayZ commentedIt looks like the $scope variable was left in the definition of the hook_field_settings() implementation in both nodereference.module and userreference.module, presumably from some earlier version of the code.
This patch removes it from both places.
So this should fix some of the warnings mentioned in this issue as well.
Comment #2
karens commentedThis took care of the error for me. Thanks.
Comment #3
jonbob commentedApplied. Thanks.
Comment #4
(not verified) commented