From 2701c847c5f8612807069f2178a8ee6ca1d8c3be Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 27 Nov 2020 12:40:42 +0100 Subject: [PATCH] =?utf8?q?Presenter::date=5Ftag:=20Validierung=20sowohl=20?= =?utf8?q?nach=20Datum=20als=20auch=20=C3=BCbergebener=20Validierung?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Presenter/Tag.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/Presenter/Tag.pm b/SL/Presenter/Tag.pm index 2b45d97d1..8929dc5e2 100644 --- a/SL/Presenter/Tag.pm +++ b/SL/Presenter/Tag.pm @@ -370,10 +370,11 @@ sub date_tag { $::request->layout->add_javascripts('kivi.Validator.js'); $::request->presenter->need_reinit_widgets($params{id}); + $params{'data-validate'} = join(' ', "date", grep { $_ } (delete $params{'data-validate'})); + input_tag( $name, blessed($value) ? $value->to_lxoffice : $value, size => 11, - "data-validate" => "date", %params, %class, @onchange, ); -- 2.20.1