Problem/Motivation

When the form gets reloaded by ajax, the date field's required value is reset to FALSE. This way there's no error set on the validation.

Proposed resolution

Altering the date_field_validate function, checking if the field is empty, if so, add error.

Remaining tasks

  • See if this is the best way of working
  • Testing
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nickmans created an issue. See original summary.

nickmans’s picture

I altered the date_field_validate function to alternatively check if the value is set.

nickmans’s picture

Issue summary: View changes
DamienMcKenna’s picture

Status: Active » Needs review

Thanks for the patch, we'll try to review it soon.

BTW when you upload a patch it helps to set the status to "needs review", that triggers the testbots and lets others know that there's something review.

Status: Needs review » Needs work

The last submitted patch, 2: date-required-reset-2940983-1-D7.patch, failed testing. View results