mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
Fixed: [export][acl][Social issue filter] fix type for retrieving data from form
This commit is contained in:
parent
f4c3997e55
commit
cf7d0c1bdb
@ -12,7 +12,6 @@ declare(strict_types=1);
|
|||||||
namespace Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters;
|
namespace Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters;
|
||||||
|
|
||||||
use Chill\MainBundle\Export\FilterInterface;
|
use Chill\MainBundle\Export\FilterInterface;
|
||||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
|
||||||
use Chill\PersonBundle\Entity\SocialWork\SocialIssue;
|
use Chill\PersonBundle\Entity\SocialWork\SocialIssue;
|
||||||
use Chill\PersonBundle\Export\Declarations;
|
use Chill\PersonBundle\Export\Declarations;
|
||||||
use Chill\PersonBundle\Form\Type\PickSocialIssueType;
|
use Chill\PersonBundle\Form\Type\PickSocialIssueType;
|
||||||
@ -31,15 +30,11 @@ class SocialIssueFilter implements FilterInterface
|
|||||||
|
|
||||||
private SocialIssueRender $socialIssueRender;
|
private SocialIssueRender $socialIssueRender;
|
||||||
|
|
||||||
private TranslatableStringHelper $translatableStringHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
TranslatorInterface $translator,
|
TranslatorInterface $translator,
|
||||||
TranslatableStringHelper $translatableStringHelper,
|
|
||||||
SocialIssueRender $socialIssueRender
|
SocialIssueRender $socialIssueRender
|
||||||
) {
|
) {
|
||||||
$this->translator = $translator;
|
$this->translator = $translator;
|
||||||
$this->translatableStringHelper = $translatableStringHelper;
|
|
||||||
$this->socialIssueRender = $socialIssueRender;
|
$this->socialIssueRender = $socialIssueRender;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,7 +54,7 @@ class SocialIssueFilter implements FilterInterface
|
|||||||
$qb->andWhere($clause)
|
$qb->andWhere($clause)
|
||||||
->setParameter(
|
->setParameter(
|
||||||
'socialissues',
|
'socialissues',
|
||||||
SocialIssue::getDescendantsWithThisForIssues($data['accepted_socialissues'])
|
SocialIssue::getDescendantsWithThisForIssues($data['accepted_socialissues']->toArray())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user