Skip to content

Commit 1eb4b67

Browse files
author
roadiz-ci
committed
Merge tag v2.7.36 into develop
1 parent 75a833f commit 1eb4b67

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
@@ -64,7 +64,7 @@ public function bulkDeleteAction(Request $request): Response
6464

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

6969
/** @var Node[] $nodes */
7070
$nodes = $this->allStatusesNodeRepository->findBy([
@@ -124,7 +124,7 @@ public function bulkStatusAction(Request $request): Response
124124

125125
$nodesIds = trim((string) $request->get('statusForm')['nodesIds']);
126126
$nodesIds = \json_decode($nodesIds, true, flags: JSON_THROW_ON_ERROR);
127-
array_filter($nodesIds);
127+
$nodesIds = array_filter($nodesIds);
128128

129129
/** @var Node[] $nodes */
130130
$nodes = $this->allStatusesNodeRepository
@@ -211,7 +211,7 @@ private function bulkDeleteNodes(array $data): string
211211
if (!empty($data['nodesIds'])) {
212212
$nodesIds = trim((string) $data['nodesIds']);
213213
$nodesIds = \json_decode($nodesIds, true, flags: JSON_THROW_ON_ERROR);
214-
array_filter($nodesIds);
214+
$nodesIds = array_filter($nodesIds);
215215

216216
$nodes = $this->allStatusesNodeRepository
217217
->findBy([
@@ -237,7 +237,7 @@ private function bulkStatusNodes(array $data): string
237237
{
238238
if (!empty($data['nodesIds'])) {
239239
$nodesIds = \json_decode((string) $data['nodesIds'], true, flags: JSON_THROW_ON_ERROR);
240-
array_filter($nodesIds);
240+
$nodesIds = array_filter($nodesIds);
241241

242242
/** @var Node[] $nodes */
243243
$nodes = $this->allStatusesNodeRepository

src/Controller/SearchController.php

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

298298
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([
@@ -659,7 +659,7 @@ private function bulkDeleteTags(array $data): string
659659

660660
$tagsIds = trim((string) $data['tagsIds']);
661661
$tagsIds = \json_decode($tagsIds, true, flags: JSON_THROW_ON_ERROR);
662-
array_filter($tagsIds);
662+
$tagsIds = array_filter($tagsIds);
663663

664664
$tags = $this->managerRegistry->getRepository(Tag::class)
665665
->findBy([

0 commit comments

Comments
 (0)