Our flag confirm form calls field_attach_form(), but then doesn't call the corresponding FieldAPI validation form.

That means that users can enter total rubbish into fields on Flaggings and it won't get validated.

Comments

joachim’s picture

One patch with tests, one patch with tests + fix.

Status: Needs review » Needs work

The last submitted patch, 1: 2254417.flag_.missing-field_attach_form_validate.patch, failed testing.

joachim’s picture

!?!!! Tests pass for me locally!!!

joachim’s picture

Just double-checked. Tests pass for me locally, even if I run them on a totally blank Drupal site.

joachim’s picture

Oh hang on! The failing test isn't even touched by this patch!!!

joachim’s picture

Oh DUH this is because the confirm unflag form is getting affected! This is what tests are for :)

joachim’s picture

Status: Needs work » Needs review
StatusFileSize
new7.74 KB

Figured it out and fixed it.

joachim’s picture

Status: Needs review » Fixed

  • Commit e5647c9 on 7.x-3.x by joachim:
    Issue #2254417 by joachim: Fixed Flagging fields in flag confirm form...

Status: Fixed » Closed (fixed)

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