Fixed issue were "No items to sort" would always be sent back

This commit is contained in:
UndefinedOffset 2012-09-10 09:40:54 -03:00
parent 04c49653a6
commit b3ca9e8d4f

View File

@ -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);
}