mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
FIX HTTPBulkToolsResponse.addSuccessRecords()
fn
This function was trying to merge 2 arrays with PHP fn `array_push()` which was failing if the second parameter was array as well. This fix replaces `array_push()` with `array_merge()` fn. Resolves #187
This commit is contained in:
parent
bdefd141ec
commit
379fda091b
@ -197,7 +197,7 @@ class HTTPBulkToolsResponse extends HTTPResponse
|
|||||||
*/
|
*/
|
||||||
public function addSuccessRecords(SS_List $records)
|
public function addSuccessRecords(SS_List $records)
|
||||||
{
|
{
|
||||||
array_push($this->successRecords, $records->toArray());
|
$this->successRecords = array_merge($this->successRecords, $records->toArray());
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user