Skip to content

Commit bc60278

Browse files
author
roadiz-ci
committed
Merge branch hotfix/v2.7.36
1 parent b9c260e commit bc60278

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Controller/Node/NodeBulkActionTrait.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function bulkDeleteAction(Request $request): Response
6666

6767
$nodesIds = trim((string) $request->get('deleteForm')['nodesIds']);
6868
$nodesIds = \json_decode($nodesIds, true, flags: JSON_THROW_ON_ERROR);
69-
array_filter($nodesIds);
69+
$nodesIds = array_filter($nodesIds);
7070

7171
/** @var Node[] $nodes */
7272
$nodes = $this->allStatusesNodeRepository->findBy([
@@ -120,7 +120,7 @@ public function bulkStatusAction(Request $request): Response
120120

121121
$nodesIds = trim((string) $request->get('statusForm')['nodesIds']);
122122
$nodesIds = \json_decode($nodesIds, true, flags: JSON_THROW_ON_ERROR);
123-
array_filter($nodesIds);
123+
$nodesIds = array_filter($nodesIds);
124124

125125
/** @var Node[] $nodes */
126126
$nodes = $this->allStatusesNodeRepository
@@ -194,7 +194,7 @@ private function bulkDeleteNodes(array $data): string
194194
if (!empty($data['nodesIds'])) {
195195
$nodesIds = trim((string) $data['nodesIds']);
196196
$nodesIds = \json_decode($nodesIds, true, flags: JSON_THROW_ON_ERROR);
197-
array_filter($nodesIds);
197+
$nodesIds = array_filter($nodesIds);
198198

199199
$nodes = $this->allStatusesNodeRepository
200200
->findBy([
@@ -220,7 +220,7 @@ private function bulkStatusNodes(array $data): string
220220
{
221221
if (!empty($data['nodesIds'])) {
222222
$nodesIds = \json_decode((string) $data['nodesIds'], true, flags: JSON_THROW_ON_ERROR);
223-
array_filter($nodesIds);
223+
$nodesIds = array_filter($nodesIds);
224224

225225
/** @var Node[] $nodes */
226226
$nodes = $this->allStatusesNodeRepository

src/Controller/SearchController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ protected function processCriteria(
290290
foreach ($data['tags'] as $key => $value) {
291291
$data['tags'][$key] = $this->managerRegistry->getRepository(Tag::class)->findByPath($value);
292292
}
293-
array_filter($data['tags']);
293+
$data['tags'] = array_filter($data['tags']);
294294
}
295295

296296
return $data;

src/Controller/Tag/TagController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public function bulkDeleteAction(Request $request): Response
267267

268268
$tagsIds = trim((string) $request->get('deleteForm')['tagsIds']);
269269
$tagsIds = \json_decode($tagsIds, true, flags: JSON_THROW_ON_ERROR);
270-
array_filter($tagsIds);
270+
$tagsIds = array_filter($tagsIds);
271271

272272
$tags = $this->managerRegistry->getRepository(Tag::class)
273273
->findBy([
@@ -643,7 +643,7 @@ private function bulkDeleteTags(array $data): string
643643

644644
$tagsIds = trim((string) $data['tagsIds']);
645645
$tagsIds = \json_decode($tagsIds, true, flags: JSON_THROW_ON_ERROR);
646-
array_filter($tagsIds);
646+
$tagsIds = array_filter($tagsIds);
647647

648648
$tags = $this->managerRegistry->getRepository(Tag::class)
649649
->findBy([

0 commit comments

Comments
 (0)