I'm setting a Entity Reference (Autocomplete) field's default value with hook_form_alter(), but when I upload an image, the validation sees the field as empty. There are no problems when I don't upload an image and the value seems to pass for Term References (Select List).

Comments

firewaller created an issue. See original summary.

firewaller’s picture

Title: AJAX does not preserve form_alter changes » AJAX does not preserve form_alter Entity Reference field change
Issue summary: View changes