The bootstrap_image_widget function is not properly closing upload div element when there are no uploaded files, creating errors in the DOM.

else { 
  $element['upload']['#prefix'] = '<div class="input-group">';
  $element['upload_button']['#prefix'] = '<span class="input-group-btn">';
  $element['upload_button']['#suffix'] = '</span></div>';
}
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fmfpereira created an issue. See original summary.

fmfpereira’s picture

Moved closing div on $element['upload_button']['#suffix'] to $element['upload']['#suffix'].

fmfpereira’s picture

Component: Templates » Code

markhalliwell’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

hass’s picture