When the cardinality of the template field is greater than 1, or in my case unlimited, you get those very cool add more and remove buttons.

When clicking on the remove button the whole form is submitted, which is fine except that if a required field is empty (i.e.: I haven't gotten to it just yet) then it becomes a nuisance.

I have added a patch that will limit the scope of the validation to the field per-se.

Please review and comment. Let me know if you have any questions.

Comments

rmontero’s picture

Status: Active » Needs review

Marking as needs review.

Status: Needs review » Needs work

The last submitted patch, 0001-Fixed-issue-with-validation-when-clicking-the-Remove.patch, failed testing.

rmontero’s picture

Version: 7.x-1.0-alpha8 » 7.x-1.x-dev

Changing the head

rmontero’s picture

Status: Needs work » Needs review
rmontero’s picture

Status: Needs review » Fixed

Merged into the next dev release.

Status: Fixed » Closed (fixed)

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