When using captcha set to "Omit challenges on all forms once the user successfully responds to any challenge on the site." if the captcha is omitted, the function clientside_validation_regular() throws an undefined index error. Undefined index: captcha_widgets in clientside_validation_regular() (line 225

i was able to prevent this by checking if $element['captcha_widgets'] exists in line 221 in clientside_validation_form.module:
if ($settings['validate_options']['captcha'] && isset($element['captcha_widgets'])) {

not sure if this is the correct way to do this, but it seems to be working for me.

Thanks.

Comments

attiks’s picture

Status: Active » Needs work

patch?

tomrog’s picture

Thanks, this is working for me too. This should be added to official version..

sweetchuck’s picture

gaëlg’s picture

Status: Needs work » Reviewed & tested by the community

Yes it works.

a.sinitsa’s picture

it works

spokje’s picture

Patch still needed for 7.x-1.46.

Has this ever been committed to 7.x-1.x-dev?

nikunjkotecha’s picture

Status: Reviewed & tested by the community » Fixed

nikunjkotecha’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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