From b3ca9e8d4f2b0116914d94b7d88239a1751b701a Mon Sep 17 00:00:00 2001 From: UndefinedOffset Date: Mon, 10 Sep 2012 09:40:54 -0300 Subject: [PATCH] Fixed issue were "No items to sort" would always be sent back --- code/forms/GridFieldSortableRows.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/forms/GridFieldSortableRows.php b/code/forms/GridFieldSortableRows.php index cb482f1..c1784aa 100644 --- a/code/forms/GridFieldSortableRows.php +++ b/code/forms/GridFieldSortableRows.php @@ -198,7 +198,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP throw new ValidationException(_t('GridFieldSortableRows.EditPermissionsFailure', "No edit permissions"),0); } - if (empty($data['Items'])) { + if (empty($data['ItemIDs'])) { user_error('No items to sort', E_USER_ERROR); }