Skip to content
This repository was archived by the owner on Aug 15, 2023. It is now read-only.

Commit 4dd1763

Browse files
author
Lars Peipmann
committed
[BUGFIX] Concatenate arrays instead of merging
1 parent e600fac commit 4dd1763

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Classes/Service/DatabaseApiService.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,19 +183,21 @@ protected function getRequestKeys(array $update, array $remove) {
183183

184184
foreach ($updateActions as $updateAction) {
185185
if (isset($update[$updateAction]) && is_array($update[$updateAction])) {
186-
$tmpKeys += array_keys($update[$updateAction]);
186+
$tmpKeys[] = array_keys($update[$updateAction]);
187187
}
188188
}
189189

190190
foreach ($removeActions as $removeAction) {
191191
if (isset($remove[$removeAction]) && is_array($remove[$removeAction])) {
192-
$tmpKeys += array_keys($remove[$removeAction]);
192+
$tmpKeys[] = array_keys($remove[$removeAction]);
193193
}
194194
}
195195

196196
$finalKeys = array();
197-
foreach ($tmpKeys as $key) {
198-
$finalKeys[$key] = TRUE;
197+
foreach ($tmpKeys as $keys) {
198+
foreach ($keys as $key) {
199+
$finalKeys[$key] = TRUE;
200+
}
199201
}
200202
return $finalKeys;
201203
}

0 commit comments

Comments
 (0)