diff --git a/core/lib/Drupal/Core/Config/Entity/DraggableListController.php b/core/lib/Drupal/Core/Config/Entity/DraggableListController.php index c23789b..bf541ec 100644 --- a/core/lib/Drupal/Core/Config/Entity/DraggableListController.php +++ b/core/lib/Drupal/Core/Config/Entity/DraggableListController.php @@ -128,7 +128,7 @@ public function validateForm(array &$form, array &$form_state) { * {@inheritdoc} */ public function submitForm(array &$form, array &$form_state) { - $entities = $this->storage->loadMultiple($form_state['values'][$this->entitiesKey]); + $entities = $this->storage->loadMultiple(array_keys($form_state['values'][$this->entitiesKey])); foreach ($form_state['values'][$this->entitiesKey] as $id => $value) { if (isset($entities[$id]) && $entities[$id]->get($this->weightKey) != $value['weight']) { // Save entity only when its weight was changed.