Skip to content

Commit fe70b42

Browse files
committed
fix(datefield,datetimefield): not rendered fields
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 5a83b32 commit fe70b42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inc/fields/datefield.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function getRenderedHtml($canEdit = true) {
7979
$rand = mt_rand();
8080
$fieldName = 'formcreator_field_' . $id;
8181

82-
Html::showDateField($fieldName, [
82+
$html .= Html::showDateField($fieldName, [
8383
'value' => (strtotime($this->value) != '') ? $this->value : '',
8484
'rand' => $rand,
8585
'display' => false,

inc/fields/datetimefield.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function getRenderedHtml($canEdit = true) {
4848
$rand = mt_rand();
4949
$fieldName = 'formcreator_field_' . $id;
5050

51-
Html::showDateTimeField($fieldName, [
51+
$html .= Html::showDateTimeField($fieldName, [
5252
'value' => strtotime($this->value) != '' ? $this->value : '',
5353
'rand' => $rand,
5454
'display' => false,

0 commit comments

Comments
 (0)