Problem/Motivation
I'm not entirely what's causing it, but on a site I help maintain the following error is logged:
Notice: Undefined index: #submit in tfa_form_alter() (line 249 of tfa.module).
Steps to reproduce
TBD
Proposed resolution
Verify that $form['#submit'] exists before passing it into array_search().
Remaining tasks
Fix the bug.
User interface changes
n/a
API changes
n/a
Data model changes
n/a
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | tfa-n3322478-2.patch | 724 bytes | damienmckenna |
Comments
Comment #2
damienmckennaIf $form['#submit'] doesn't exist then just default $key to 0.
Comment #3
jcnventuraCan be slightly simplified, but the code is so simple that I'll just simplify and commit.
Comment #5
jcnventura