mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Merge branch '135-bad-type-in-emergency-filter' into 'master'
Resolve "[saved exports] erreur de typage quand on veut remodifier un export sauvegardé" See merge request Chill-Projet/chill-bundles!582
This commit is contained in:
commit
e9f90e2dd2
6
.changes/unreleased/Fixed-20230822-142809.yaml
Normal file
6
.changes/unreleased/Fixed-20230822-142809.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
kind: Fixed
|
||||||
|
body: "Corrects a typing error in 2 filters, which caused an \nerror when trying to
|
||||||
|
reedit a saved export\n\n"
|
||||||
|
time: 2023-08-22T14:28:09.485466139+02:00
|
||||||
|
custom:
|
||||||
|
Issue: "135"
|
@ -22,11 +22,11 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
|||||||
class EmergencyFilter implements FilterInterface
|
class EmergencyFilter implements FilterInterface
|
||||||
{
|
{
|
||||||
private const CHOICES = [
|
private const CHOICES = [
|
||||||
'activity is emergency' => true,
|
'activity is emergency' => 'true',
|
||||||
'activity is not emergency' => false,
|
'activity is not emergency' => 'false',
|
||||||
];
|
];
|
||||||
|
|
||||||
private const DEFAULT_CHOICE = false;
|
private const DEFAULT_CHOICE = 'false';
|
||||||
|
|
||||||
private TranslatorInterface $translator;
|
private TranslatorInterface $translator;
|
||||||
|
|
||||||
|
@ -29,11 +29,11 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
|||||||
class CalendarRangeFilter implements FilterInterface
|
class CalendarRangeFilter implements FilterInterface
|
||||||
{
|
{
|
||||||
private const CHOICES = [
|
private const CHOICES = [
|
||||||
'Not made within a calendar range' => true,
|
'Not made within a calendar range' => 'true',
|
||||||
'Made within a calendar range' => false,
|
'Made within a calendar range' => 'false',
|
||||||
];
|
];
|
||||||
|
|
||||||
private const DEFAULT_CHOICE = false;
|
private const DEFAULT_CHOICE = 'false';
|
||||||
|
|
||||||
private TranslatorInterface $translator;
|
private TranslatorInterface $translator;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user