|
|
@@ -14,7 +14,11 @@ class DateTimeConstraintExtension implements AccessExtensionInterface {
|
|
|
}
|
|
|
public function support(string $name): bool
|
|
|
{
|
|
|
- return $this->requestStack->getMainRequest()->get('_time_constraint', true) == true;
|
|
|
+ return
|
|
|
+ (
|
|
|
+ $this->requestStack->getMainRequest()->isMethod('GET') &&
|
|
|
+ $this->requestStack->getMainRequest()->get('_time_constraint', true) == true
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
public function addWhere(QueryBuilder $queryBuilder)
|