add missing form child in getFormDefaultData() + sort methods

try to resolve 2 last unit tests errors on ci (no errors in local)
This commit is contained in:
2023-09-29 09:35:52 +02:00
parent eddcfc3921
commit 84ba626fb5
17 changed files with 65 additions and 28 deletions

View File

@@ -81,6 +81,7 @@ class ByUserJobAggregator implements AggregatorInterface
'required' => true
]);
}
public function getFormDefaultData(): array
{
return ['job_at' => new RollingDate(RollingDate::T_TODAY)];

View File

@@ -79,6 +79,7 @@ class ByUserScopeAggregator implements AggregatorInterface
'required' => true,
]);
}
public function getFormDefaultData(): array
{
return ['scope_at' => new RollingDate(RollingDate::T_TODAY)];

View File

@@ -95,7 +95,10 @@ class ByUserJobFilter implements FilterInterface
public function getFormDefaultData(): array
{
return ['job_at' => new RollingDate(RollingDate::T_TODAY)];
return [
'jobs' => [],
'job_at' => new RollingDate(RollingDate::T_TODAY)
];
}
public function getTitle(): string

View File

@@ -98,7 +98,10 @@ class ByUserScopeFilter implements FilterInterface
public function getFormDefaultData(): array
{
return ['scope_at' => new RollingDate(RollingDate::T_TODAY)];
return [
'scopes' => [],
'scope_at' => new RollingDate(RollingDate::T_TODAY)
];
}
public function getTitle(): string