Skip to content

Commit

Permalink
Fixed issue #18330: SurveySetting type date doesnt show datepicker (#…
Browse files Browse the repository at this point in the history
…2632)

Dev: fix the id with CHTml
Dev: same than other render part
  • Loading branch information
Shnoulle committed Sep 27, 2022
1 parent f159443 commit 08a0ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/extensions/SettingsWidget/SettingsWidget.php
Expand Up @@ -614,7 +614,7 @@ public function renderDate($name, array $metaData, $form = null)
$value = isset($metaData['current']) ? $metaData['current'] : '';
$html = Yii::app()->getController()->widget('yiiwheels.widgets.datetimepicker.WhDateTimePicker', array(
'name' => $name,
'id' => $name,
'id' => \CHtml::getIdByName($name),
'value' => $value,
'pluginOptions' => array(
'format' => $dateformatdetails['jsdate'] . " HH:mm",
Expand Down

0 comments on commit 08a0ae5

Please sign in to comment.