Skip to content

Commit 18cabbb

Browse files
Horde ReleaseHorde Release
authored andcommitted
fix: Rendering invalid form types requires getter for message.
1 parent 5155788 commit 18cabbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Horde/Core/Ui/VarRenderer/Html.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,11 +580,11 @@ protected function _renderVarInput_monthdayyear($form, &$var, &$vars)
580580
$dates['year'][$i] = $i;
581581
}
582582
}
583-
584583
// TODO: use NLS to get the order right for the Rest Of The
585584
// World.
586585
$html = '';
587586
$date_parts = ['month', 'day', 'year'];
587+
$html .= '<input type="date">';
588588
foreach ($date_parts as $part) {
589589
$html .= sprintf(
590590
'<select name="%s" id="%s"%s>%s</select>',
@@ -1534,7 +1534,7 @@ protected function _renderVarDisplay_colorpicker($form, &$var, &$vars)
15341534

15351535
protected function _renderVarDisplay_invalid($form, &$var, &$vars)
15361536
{
1537-
return '<span class="form-error">' . htmlspecialchars((string) $var->type->message) . '</span>';
1537+
return '<span class="form-error">' . htmlspecialchars((string) $var->type->getMessage()) . '</span>';
15381538
}
15391539

15401540
protected function _renderVarDisplay_link($form, &$var, &$vars)

0 commit comments

Comments
 (0)