mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
cs: Third and last part.
This commit is contained in:
parent
3ea35682eb
commit
a2c209a857
@ -121,16 +121,16 @@ trait AppendScopeChoiceTypeTrait
|
|||||||
$form = $event->getForm();
|
$form = $event->getForm();
|
||||||
$form->add(
|
$form->add(
|
||||||
$builder
|
$builder
|
||||||
->create(
|
->create(
|
||||||
$name,
|
$name,
|
||||||
ChoiceType::class,
|
ChoiceType::class,
|
||||||
[
|
[
|
||||||
'choices' => array_combine(array_values($choices), array_keys($choices)),
|
'choices' => array_combine(array_values($choices), array_keys($choices)),
|
||||||
'auto_initialize' => false,
|
'auto_initialize' => false,
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
->addModelTransformer($dataTransformer)
|
->addModelTransformer($dataTransformer)
|
||||||
->getForm()
|
->getForm()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -294,9 +294,9 @@ class SingleTaskRepository extends EntityRepository
|
|||||||
->add($qb->expr()->isNotNull('st.warningInterval'))
|
->add($qb->expr()->isNotNull('st.warningInterval'))
|
||||||
->add(
|
->add(
|
||||||
$qb->expr()->gt(
|
$qb->expr()->gt(
|
||||||
$qb->expr()->diff('st.endDate', 'st.warningInterval'),
|
$qb->expr()->diff('st.endDate', 'st.warningInterval'),
|
||||||
':now'
|
':now'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
->add($qb->expr()->isNull('st.endDate'))
|
->add($qb->expr()->isNull('st.endDate'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user