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?

CommentFileSizeAuthor
#4 bootstrap-1909590.patch911 bytesmarkhalliwell
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

windmaomao’s picture

element_set_attributes only set the attribute settings, so #id is not always set, I guess.

change 272 seems fix it,

  if (isset($element['#id']) && in_array($element['#id'], $whitelist)) {
Stalski’s picture

Same problem here. The suggested fix is fine.

wundo’s picture

Version: 7.x-3.x-dev » 7.x-2.x-dev
markhalliwell’s picture

Status: Active » Needs review
FileSize
911 bytes

Providing patch

wundo’s picture

Status: Needs review » Fixed

Committed, thanks! :)

Status: Fixed » Closed (fixed)

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