Hi!
I found problem:
when we use module entityreference_prepopulate and set action on entityreferece field (with entityreference_view_widget) to disable field - we can't save node form with error: 'field is required'
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | fix_validate-2306389-03.patch | 1.06 KB | dr.admin |
Comments
Comment #1
dr.admin commentedWe can't save node because in function entityreference_view_widget_validate disabled fields is not in $input array
Comment #2
dr.admin commentedComment #3
dr.admin commentedComment #4
jsacksick commentedI'm wondering why would you use entityreference_view_widget if you disable the field and prepopulate it via entityreference_prepopulate? Why do you need the widget for then?
Comment #5
jsacksick commentedI tested and committed the attached path, thanks for your contribution even though I still don't understand in which situation you would need to use ERVW with entityreference_prepopulate.
Comment #7
dr.admin commented:))
On my site i have node "doctor" and it has entity reference field for node "clinic".
When user create doctor from node "clinic" i use entityreference_prepopulate to fill entity_reference field, but if user create node "doctor" from other pages user selects clinic via ERVW.