This commit is contained in:
2022-06-06 17:50:21 +02:00
parent 537fefee15
commit fc7d2fcca3
6 changed files with 87 additions and 77 deletions

View File

@@ -12,7 +12,7 @@ declare(strict_types=1);
namespace Chill\MainBundle\Templating\Listing;
use Chill\MainBundle\Form\Type\Listing\FilterOrderType;
use \DateTimeImmutable;
use DateTimeImmutable;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\HttpFoundation\RequestStack;
@@ -86,9 +86,9 @@ class FilterOrderHelper
return $this->getFormData()['checkboxes'][$name];
}
public function getDateRanges(): array
public function getCheckboxes(): array
{
return $this->dateRanges;
return $this->checkboxes;
}
/**
@@ -99,9 +99,9 @@ class FilterOrderHelper
return $this->getFormData()['dateRanges'][$name];
}
public function getCheckboxes(): array
public function getDateRanges(): array
{
return $this->checkboxes;
return $this->dateRanges;
}
public function getQueryString(): ?string

View File

@@ -11,7 +11,7 @@ declare(strict_types=1);
namespace Chill\MainBundle\Templating\Listing;
use \DateTimeImmutable;
use DateTimeImmutable;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\HttpFoundation\RequestStack;