Skip to content

Commit 0b6d904

Browse files
committed
コード調整
1 parent bac840f commit 0b6d904

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

plugins/bc-blog/src/Service/BlogCategoriesService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ public function get(int $id, array $queryParams = []): EntityInterface
6767
$conditions = $this->BlogCategories->BlogContents->Contents->getConditionAllowPublish();
6868
}
6969
return $this->BlogCategories->get($id,
70-
conditions: $conditions,
71-
contain: $contain);
70+
conditions: $conditions,
71+
contain: $contain
72+
);
7273
}
7374

7475
/**

plugins/bc-blog/src/Service/BlogContentsService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function createIndexConditions(Query $query, array $params): Query
102102
], $params);
103103

104104
if (!is_null($params['description'])) {
105-
$query->where(['description LIKE' => '%' . $params['description'] . '%']);
105+
$query->where(['BlogContents.description LIKE' => '%' . $params['description'] . '%']);
106106
}
107107

108108
if ($params['status'] === 'publish') {

plugins/bc-blog/tests/Scenario/BlogContentScenario.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function load(...$args): mixed
3636
{
3737
$id = $args[0] ?? 1;
3838
$siteId = $args[1] ?? 1;
39-
$parentId = $args[2] ?? 1;
39+
$parentId = $args[2];
4040
$name = $args[3] ?? 'blog';
4141
$url = $args[4] ?? '/blog/';
4242
$tile = $args[5] ?? '';

0 commit comments

Comments
 (0)