Permalink
Browse files

feature #9360 [Finder] Fix finder date constraints and tests (ruian)

This PR was merged into the 2.5-dev branch.

Discussion
----------

[Finder] Fix finder date constraints and tests

Description:
When you search some files with date constraints, all folders are given, even if they are not in the date scope.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  |no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9303
| License       | MIT

Commits
-------

4ccafa6 Fix finder date constraints and tests
  • Loading branch information...
2 parents 46881af + 315d071 commit ded8fd1498e72a892bde0f96ee6d037b932aa74f @fabpot fabpot committed Dec 27, 2013
Showing with 0 additions and 8 deletions.
  1. +0 −4 Iterator/DateRangeFilterIterator.php
  2. +0 −4 Tests/Iterator/DateRangeFilterIteratorTest.php
@@ -44,10 +44,6 @@ public function accept()
{
$fileinfo = $this->current();
- if (!$fileinfo->isFile()) {
- return true;
- }
-
$filedate = $fileinfo->getMTime();
foreach ($this->comparators as $compare) {
if (!$compare->test($filedate)) {
@@ -57,12 +57,8 @@ public function getAcceptData()
);
$untilLastMonth = array(
- '.git',
- 'foo',
'foo/bar.tmp',
'test.php',
- 'toto',
- '.foo',
);
return array(

0 comments on commit ded8fd1

Please sign in to comment.