Commit 23ecef91 authored by Tim Hayward's avatar Tim Hayward Committed by tstruyk
Browse files

Issue #2729935 by thtas: Sort order not saved when using bootstrap theme

parent 4679b169
Loading
Loading
Loading
Loading
+2 −2
Changes for src/Plugin/views/field/DraggableViewsField.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -63,14 +63,14 @@ class DraggableViewsField extends BulkForm {
      $form[$this->options['id']][$row_index]['id'] = array(
        '#type' => 'hidden',
        '#value' => $row->{$this->definition['entity field']},
        '#attributes' => array('class' => 'draggableviews-id'),
        '#attributes' => array('class' => array('draggableviews-id')),
      );

      // Add parent.
      $form[$this->options['id']][$row_index]['parent'] = array(
        '#type' => 'hidden',
        '#default_value' => $draggableviews->getParent($row_index),
        '#attributes' => array('class' => 'draggableviews-parent'),
        '#attributes' => array('class' => array('draggableviews-parent')),
      );
    }