I'm getting this error on a simple setup:
1. content-type image with field_image
2. content-type article with field_image_ref and widget reference_node_selector
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | nodereference_selector-1689218.patch | 972 bytes | jonhattan |
I'm getting this error on a simple setup:
1. content-type image with field_image
2. content-type article with field_image_ref and widget reference_node_selector
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | nodereference_selector-1689218.patch | 972 bytes | jonhattan |
Comments
Comment #1
jonhattanIf a create a new field and select this widget on creation it works.
It fails when editing the field.
I'm configuring the field for cardinality:unlimited (-1)
in function
nodereference_selector_validate()you load the field widget and it's wrong as it doesn't provide the current cardinality of the field (filled in the form being submited).Comment #2
jonhattanComment #3
skein commentedHello,
Yes I managed to replicate the issue.
But applying your patch gives the following error:
But I've added a fix in the validation function to check for a positive number of allowed selections.
The fix is added in the latest dev snapshot.
Comment #4
skein commented