mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
csfixes
This commit is contained in:
parent
a4457664d4
commit
a0bc6c7604
@ -271,7 +271,7 @@ class ActivityType
|
|||||||
public function checkSocialActionsVisibility(ExecutionContextInterface $context, $payload)
|
public function checkSocialActionsVisibility(ExecutionContextInterface $context, $payload)
|
||||||
{
|
{
|
||||||
if ($this->socialIssuesVisible !== $this->socialActionsVisible) {
|
if ($this->socialIssuesVisible !== $this->socialActionsVisible) {
|
||||||
if (!($this->socialIssuesVisible === 2 && $this->socialActionsVisible === 1)) {
|
if (!(2 === $this->socialIssuesVisible && 1 === $this->socialActionsVisible)) {
|
||||||
$context
|
$context
|
||||||
->buildViolation('The socialActionsVisible value is not compatible with the socialIssuesVisible value')
|
->buildViolation('The socialActionsVisible value is not compatible with the socialIssuesVisible value')
|
||||||
->atPath('socialActionsVisible')
|
->atPath('socialActionsVisible')
|
||||||
|
@ -28,6 +28,11 @@ final class AccompanyingPeriodRepository implements ObjectRepository
|
|||||||
$this->repository = $entityManager->getRepository(AccompanyingPeriod::class);
|
$this->repository = $entityManager->getRepository(AccompanyingPeriod::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function countBy(array $criteria): int
|
||||||
|
{
|
||||||
|
return $this->repository->count($criteria);
|
||||||
|
}
|
||||||
|
|
||||||
public function countByRecentUserHistory(User $user, DateTimeImmutable $since): int
|
public function countByRecentUserHistory(User $user, DateTimeImmutable $since): int
|
||||||
{
|
{
|
||||||
$qb = $this->buildQueryByRecentUserHistory($user, $since);
|
$qb = $this->buildQueryByRecentUserHistory($user, $since);
|
||||||
@ -35,11 +40,6 @@ final class AccompanyingPeriodRepository implements ObjectRepository
|
|||||||
return $qb->select('count(a)')->getQuery()->getSingleScalarResult();
|
return $qb->select('count(a)')->getQuery()->getSingleScalarResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function countBy(array $criteria): int
|
|
||||||
{
|
|
||||||
return $this->repository->count($criteria);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function createQueryBuilder(string $alias, ?string $indexBy = null): QueryBuilder
|
public function createQueryBuilder(string $alias, ?string $indexBy = null): QueryBuilder
|
||||||
{
|
{
|
||||||
return $this->repository->createQueryBuilder($alias, $indexBy);
|
return $this->repository->createQueryBuilder($alias, $indexBy);
|
||||||
|
@ -247,8 +247,6 @@ export default {
|
|||||||
this.suggested.unshift(this.priorSuggestion);
|
this.suggested.unshift(this.priorSuggestion);
|
||||||
this.selected.unshift(this.priorSuggestion);
|
this.selected.unshift(this.priorSuggestion);
|
||||||
|
|
||||||
// console.log('selected', this.selected);
|
|
||||||
// console.log('suggested', this.suggested);
|
|
||||||
this.newPriorSuggestion(null);
|
this.newPriorSuggestion(null);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -262,7 +260,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.search.priorSuggestion = suggestion;
|
this.search.priorSuggestion = suggestion;
|
||||||
// console.log('search priorSuggestion', this.search.priorSuggestion);
|
// console.log('search priorSuggestion', this.search.priorSuggestion);
|
||||||
this.addPriorSuggestion(suggestion)
|
this.addPriorSuggestion(suggestion);
|
||||||
} else {
|
} else {
|
||||||
this.search.priorSuggestion = {};
|
this.search.priorSuggestion = {};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user