Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/FilterRule/FromTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* @author Stefan Heimes <stefan_heimes@hotmail.com>
* @author Richard Henkenjohann <richardhenkenjohann@googlemail.com>
* @author Sven Baumann <baumann.sv@gmail.com>
* @author Ingolf Steinhardt <info@e-spin.de>
* @copyright 2012-2019 The MetaModels team.
* @license https://github.com/MetaModels/filter_fromto/blob/master/LICENSE LGPL-3.0-or-later
* @filesource
Expand Down Expand Up @@ -115,9 +116,9 @@ public function isLowerInclusive()
}

/**
* Mark the lower bound of the range to search.
* Mark the upper bound of the range to search.
*
* @param mixed $value The value to use for the lower bound.
* @param mixed $value The value to use for the upper bound.
*
* @param bool $inclusive Flag if the value shall also be included in the result.
*
Expand Down Expand Up @@ -190,7 +191,7 @@ protected function evaluateLowerBound()
}

/**
* Evaluate the lower bounding of the range.
* Evaluate the upper bounding of the range.
*
* @return null|\string[]
*/
Expand Down
3 changes: 3 additions & 0 deletions src/FilterSetting/AbstractFromTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* @author Stefan Heimes <stefan_heimes@hotmail.com>
* @author Richard Henkenjohann <richardhenkenjohann@googlemail.com>
* @author Sven Baumann <baumann.sv@gmail.com>
* @author Ingolf Steinhardt <info@e-spin.de>
* @copyright 2012-2019 The MetaModels team.
* @license https://github.com/MetaModels/filter_fromto/blob/master/LICENSE LGPL-3.0-or-later
* @filesource
Expand Down Expand Up @@ -332,6 +333,8 @@ public function prepareRules(IFilter $objFilter, $arrFilterUrl)
$objFilter->addFilterRule(
$this->createFromToRule($attribute, $this->formatEmpty($value[0]), $this->formatEmpty($value[1]))
);

return;
}

// Add rule to the filter.
Expand Down