From db2df2d80889263cdb7deffbd25c5ea2291aab72 Mon Sep 17 00:00:00 2001 From: Dries Date: Wed, 29 May 2013 15:00:12 -0400 Subject: [PATCH] Issue #1879774 by damiankloip, dawehner, xjm: Catch plugin exceptions for invalid views display plugins. --- .../views_ui/lib/Drupal/views_ui/Form/Ajax/Rearrange.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/views_ui/lib/Drupal/views_ui/Form/Ajax/Rearrange.php b/core/modules/views_ui/lib/Drupal/views_ui/Form/Ajax/Rearrange.php index 75c469f7bfe..170182bd881 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/Form/Ajax/Rearrange.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/Form/Ajax/Rearrange.php @@ -142,7 +142,7 @@ class Rearrange extends ViewsFormBase { $new_fields = $order = array(); // Make an array with the weights - foreach ($form_state['values'] as $field => $info) { + foreach ($form_state['values']['fields'] as $field => $info) { // add each value that is a field with a weight to our list, but only if // it has had its 'removed' checkbox checked. if (is_array($info) && isset($info['weight']) && empty($info['removed'])) {