From e69253030c1f30d3210609925678b410736e92fb Mon Sep 17 00:00:00 2001 From: daniquilez Date: Thu, 22 May 2014 15:52:19 +0200 Subject: [PATCH] fix update function when working with locale When using a localized page in order of prevent errors when iterating through records id we need to remove locale attributes same as we do with url and cacheBuster. --- bulkManager/code/GridFieldBulkActionEditHandler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bulkManager/code/GridFieldBulkActionEditHandler.php b/bulkManager/code/GridFieldBulkActionEditHandler.php index 551eeac..7ade675 100644 --- a/bulkManager/code/GridFieldBulkActionEditHandler.php +++ b/bulkManager/code/GridFieldBulkActionEditHandler.php @@ -250,6 +250,7 @@ class GridFieldBulkActionEditHandler extends GridFieldBulkActionHandler if ( isset($data['url']) ) unset($data['url']); if ( isset($data['cacheBuster']) ) unset($data['cacheBuster']); + if ( isset($data['locale']) ) unset($data['locale']); foreach ($data as $recordID => $recordDataSet) { @@ -280,4 +281,4 @@ class GridFieldBulkActionEditHandler extends GridFieldBulkActionHandler 'records' => $return ), JSON_NUMERIC_CHECK); } -} \ No newline at end of file +}