From ede79bf40d1710857052382b6228ad6a6624f0a8 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 29 Sep 2023 14:32:27 +0200 Subject: [PATCH] only dates in the future can be selected, add help message for expiration date --- views/bootstrap/class.SetExpires.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.SetExpires.php b/views/bootstrap/class.SetExpires.php index d94622c8e..08359a68b 100644 --- a/views/bootstrap/class.SetExpires.php +++ b/views/bootstrap/class.SetExpires.php @@ -85,11 +85,14 @@ $(document).ready( function() { 'id'=>'presetexpdate', 'name'=>'presetexpdate', 'options'=>$options + ), + array( + 'help'=>getMLText('set_expiration_date_help') ) ); $this->formField( getMLText("expires"), - $this->getDateChooser($expdate, "expdate", $this->params['session']->getLanguage()) + $this->getDateChooser($expdate, "expdate", $this->params['session']->getLanguage(), '', '+1d') ); $this->contentContainerEnd(); $this->formSubmit(" ".getMLText('save'));