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

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

Resolve "Support default dates for DateFilterElement"

See merge request fusiondirectory/fd!592
Showing with 3 additions and 1 deletion
+3 -1
...@@ -30,7 +30,7 @@ class DateFilterElement extends FilterElement ...@@ -30,7 +30,7 @@ class DateFilterElement extends FilterElement
protected $max; protected $max;
protected $types; 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; global $config;
...@@ -39,6 +39,8 @@ class DateFilterElement extends FilterElement ...@@ -39,6 +39,8 @@ class DateFilterElement extends FilterElement
$this->attribute = $attribute; $this->attribute = $attribute;
$this->label = $label; $this->label = $label;
$this->types = $types; $this->types = $types;
$this->min = $defaultMin;
$this->max = $defaultMax;
} }
public function update () public function update ()
......
Supports Markdown
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