Commit 0727e334 authored by Côme Chilliet's avatar Côme Chilliet

Merge branch '5992-support-default-dates-for-datefilterelement' into '1.4-dev'

Resolve "Support default dates for DateFilterElement"

See merge request fusiondirectory/fd!592
parents e950736a bc0da07e
......@@ -30,7 +30,7 @@ class DateFilterElement extends FilterElement
protected $max;
protected $types;
public function __construct (managementFilter $parent, string $attribute, string $label, array $types = [])
public function __construct (managementFilter $parent, string $attribute, string $label, string $defaultMin = NULL, string $defaultMax = NULL, array $types = [])
{
global $config;
......@@ -39,6 +39,8 @@ class DateFilterElement extends FilterElement
$this->attribute = $attribute;
$this->label = $label;
$this->types = $types;
$this->min = $defaultMin;
$this->max = $defaultMax;
}
public function update ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment