I have created an image field and set it to Remote Stream Wrapper under Form Display. Allowed numbers of values is set to unlimited but doesn't matter if set to 1. This field is not a required field. When this field is left empty while editing or adding content, I get the error message "The website encountered an unexpected error. Please try again later."
Also, editing nodes with multi-values become impossible as an empty item is added to the end of the list automatically.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3043148-6.patch | 1.89 KB | legolasbo |
| #5 | 3043148-5-test-only.patch | 1.23 KB | legolasbo |
Comments
Comment #2
sergiu stici commentedI corrected the error, here is the patch.
Comment #3
sergiu stici commentedComment #4
legolasboI've made the patch a bit more readable. Can you verify that it still solves your issue?
Comment #5
legolasboThis patch demonstrates the issue in the form of a failing test.
Comment #6
legolasboAnd this adds the fix from #4.
Comment #8
Edwin KnolReviewed, Looks good to me.
You could at the empty field to the test to make it more clear what your testing.
Comment #10
legolasboEmpty field added and committed and pushed to 8.x-1.x. Thanks for reporting this and reviewing the patch!