mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
holder: fix when repositionning/moving member on same day
* if holder has not the index '0', validator fails. Use the method Collection::first * change constraint to allow a move on household on same day
This commit is contained in:
@@ -29,7 +29,7 @@ class MaxHolderValidator extends ConstraintValidator
|
||||
|
||||
$covers = new DateRangeCovering(
|
||||
self::MAX_HOLDERS,
|
||||
$holders[0]->getStartDate()->getTimezone()
|
||||
$holders->first()->getStartDate()->getTimezone()
|
||||
);
|
||||
|
||||
foreach ($holders as $key => $member) {
|
||||
|
Reference in New Issue
Block a user