Check $form_state's value isn't empty in filefield_node_form_validate().

CommentFileSizeAuthor
filefield_widget_0_check_form_state.patch791 bytesamitaibu

Comments

bchoc’s picture

Is 'empty' necessary? Is the $form_state['values'][$field_name] known to be defined at this time, is it just for readability?

Regardless, I'm testing this patch as it looks like it will address that annoying error message nicely.

akolahi’s picture

patch worked for me :D

quicksketch’s picture

Status: Needs review » Fixed

Thanks, committed to HEAD.

elcuco’s picture

I confirm that this patch works for me as well ;-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.