Skip to content

Commit

Permalink
カスタムコンテンツ 日時フィールド type変更
Browse files Browse the repository at this point in the history
  • Loading branch information
seto1 committed Jun 27, 2024
1 parent e469e77 commit f82733d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/baser-core/src/View/Helper/BcAdminFormHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public function control(string $fieldName, array $options = []): string
case 'text':
case 'password':
case 'date':
case 'dateTime':
case 'datePicker':
case 'tel':
case 'email':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function control(CustomLink $link, array $options = []): string
{
$field = $link->custom_field;
$options = array_merge([
'type' => 'dateTimePicker',
'type' => 'dateTime',
'size' => $field->size? : 12
], $options);
return $this->BcAdminForm->control($link->name, $options);
Expand Down

0 comments on commit f82733d

Please sign in to comment.