Problem/Motivation

Undefined index: #required in clientside_validation_regular() on line 214 of clientside_validation_form.module.

Proposed resolution

Wrap the condition on $element['#required'] in isset().

Remaining tasks

Test.

User interface changes

None.

API changes

None.

CommentFileSizeAuthor
#1 1765636-required.patch770 bytessolotandem

Comments

solotandem’s picture

Status: Active » Needs review
StatusFileSize
new770 bytes

You might want to also include a condition of "&& $element['#required']" before executing the set_required() call.

jelle_s’s picture

Status: Needs review » Fixed

fixed in latest dev. Thanks for the patch!

Status: Fixed » Closed (fixed)

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