Skip to content

Commit b11bc4e

Browse files
committed
fix(datefield): undefined var when creating question
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent a129a00 commit b11bc4e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

inc/fields/datefield.class.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ public static function getName() {
9595
return __('Date');
9696
}
9797

98+
public function prepareQuestionInputForSave($input) {
99+
$this->value = '';
100+
return $input;
101+
}
102+
103+
98104
public static function canRequire() {
99105
return true;
100106
}

0 commit comments

Comments
 (0)