Fix setting values for entity reference and text fields on POST.