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.
This commit is contained in:
daniquilez 2014-05-22 15:52:19 +02:00
parent de7be9d8af
commit e69253030c
1 changed files with 2 additions and 1 deletions

View File

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