Commit bd2cfb05 authored by Pedro Cambra's avatar Pedro Cambra
Browse files

Issue #1918748 by pcambra: Fixed Operations links duplicate themselves if more...

Issue #1918748 by pcambra: Fixed Operations links duplicate themselves if more than 1 extra pane listed.
parent 364eeea1
Loading
Loading
Loading
Loading
+2 −2
Changes for commerce_extra_panes.module: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -71,7 +71,9 @@ function theme_commerce_extra_panes_settings_list($element) {
  $extra_panes = commerce_extra_panes_get_panes();
  foreach ($extra_panes as $extra_pane) {
    $entity = entity_load_single($extra_pane->extra_type, $extra_pane->extra_id);

    $row = array();
    $operations = array();
    $row[] = array('data' => check_plain($entity->title));
    $row[] = array('data' => $extra_pane->extra_type);
    $status = ($extra_pane->status) ? t('Enabled') : t('Disabled');
@@ -97,10 +99,8 @@ function theme_commerce_extra_panes_settings_list($element) {
      'href' => 'admin/commerce/config/checkout/extra/' . $extra_pane->extra_id . '/delete',
      'title' => t('delete'),
    );

    $ops = theme('links__ctools_dropbutton', array('links' => $operations, 'attributes' => array('class' => array('links', 'inline'))));
    $row[] = array('data' => $ops);

    $variables['rows'][] = $row;
  }