Recent changes since 7.x-4.0-rc2 have created form validation handlers which must be run in a particular sequence. If other contrib modules use hook_form_alter to add their handlers, they must be added with care to avoid displacing the pre- and post-validation handlers. Contribute module authors are unlikely to be aware to do this.

To insulate webform from causing incompatibilities with other webform-related modules, adding the pre- and post-validation handlers should be deferred until the '#process' phase, which runs after hook_form_alter(s). In this way, other modules can add validation to the beginning or end of the existing validation handler array without preventing webform from having the very first and very last round of validation.

Comments

danchadwick’s picture

Status: Active » Fixed
StatusFileSize
new2.32 KB

Committed to 7.x-4.x and 8.x

  • DanChadwick committed 6487452 on 7.x-4.x
    Issue #2296489 by DanChadwick: Added the deferring of pre/post...
  • DanChadwick committed 4209e3a on 8.x-4.x
    Issue #2296489 by DanChadwick: Added the deferring of pre/post...

Status: Fixed » Closed (fixed)

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