Had notice that my db log is filling with these entries:
Notice: Undefined index: #limit_validation_errors in Drupal\captcha\Element\Captcha::processCaptchaElement()
Will attach a patch to fix this.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2929153-4.patch | 927 bytes | gpbarga |
| #3 | captcha-undefined-index-2929153-3-8.3.7.patch | 807 bytes | welly |
Comments
Comment #2
welly commentedComment #3
welly commentedComment #4
gpbarga commentedHey, ran into this problem aswell.
I think we should also ensure that the $form_state->getTriggerElement()['#limit_validation_errors'] is an array aswell instead of just checking if its set to preserve the intention of calling is_array().
Comment #5
welly commentedMakes sense @gpbarga! Tested your updated patch, looks good to me!
Comment #6
welly commentedComment #7
wundo commentedComment #8
wundo commentedComment #10
wundo commented