Skip to content

Commit

Permalink
fix #3303 カスタムコンテンツ 並び順の選択肢の中に「公開日付」が含まれていない問題を解決 (#3304)
Browse files Browse the repository at this point in the history
Co-authored-by: kato <kato@e-catchup.jp>
  • Loading branch information
katokaisya and kato authored Apr 3, 2024
1 parent a3391e1 commit 31ec015
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function getControlSource(string $field, array $options = []): array
*/
public function getListOrders(int $tableId): array
{
$list = ['id' => 'No', 'created' => __d('baser_core', '登録日'), 'modified' => __d('baser_core', '編集日')];
$list = ['id' => 'No', 'published' => __d('baser_core', '公開日付'), 'created' => __d('baser_core', '登録日'), 'modified' => __d('baser_core', '編集日')];
if(!$tableId) return $list;
$table = $this->CustomContents->CustomTables->get($tableId, ['contain' => [
'CustomLinks' => ['CustomFields']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ public function test_getControlSource()
$result = $this->CustomContentsService->getControlSource('list_order', $options);
$listExpected = [
'id' => 'No',
'published' => '公開日付',
'created' => '登録日',
'modified' => '編集日'
];
Expand Down Expand Up @@ -272,6 +273,7 @@ public function test_getListOrders()
'display_field' => 'title',
'publish_begin' => '2021-10-01 00:00:00',
'publish_end' => '9999-11-30 23:59:59',
'published' => '2021-10-01 00:00:00',
'has_child' => 0
]);

Expand All @@ -282,6 +284,7 @@ public function test_getListOrders()
//対象メソッドをコール
$rs = $this->CustomContentsService->getListOrders(1);
$listExpect = [
'published' => '公開日付',
'created' => '登録日',
'modified' => '編集日',
'recruit_category' => '求人分類',
Expand Down

0 comments on commit 31ec015

Please sign in to comment.