Currently when a credit card, expiration date, or CCV2 fails the field isn't highlighted. This patch changes to using form_error() on the element where possible, instead of using form_set_error() on a string, which didn't work because it requires the whole set of parents as a string, which won't be the name of the field if form is nested anywhere within a form.

CommentFileSizeAuthor
pay_form_validations.patch2.49 KBquicksketch

Comments

quicksketch’s picture

Priority: Normal » Minor
Status: Active » Needs review
jerdavis’s picture

Status: Needs review » Fixed

Committed to HEAD

Status: Fixed » Closed (fixed)

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