Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Notice: Undefined index: #id in bootstrap_button() (line 229 of /var/www/site/sites/all/themes/bootstrap/includes/form.inc).
This happens when coming out of editing a view.
Just wondering if wrapping this in
if(array_key_exists('#id', $whitelist)) {
Would be enough?
Comment | File | Size | Author |
---|---|---|---|
#4 | bootstrap-1909590.patch | 911 bytes | markhalliwell |
Comments
Comment #1
windmaomao CreditAttribution: windmaomao commentedelement_set_attributes only set the attribute settings, so #id is not always set, I guess.
change 272 seems fix it,
Comment #2
Stalski CreditAttribution: Stalski commentedSame problem here. The suggested fix is fine.
Comment #3
wundo CreditAttribution: wundo commentedComment #4
markhalliwellProviding patch
Comment #5
wundo CreditAttribution: wundo commentedCommitted, thanks! :)