mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 17:28:23 +00:00 
			
		
		
		
	Merge branch 'export/allow-check-multiple-geographical-zones' into 'master'
Feature: [export] allow to check multiple geographical layers in geographical aggregators See merge request Chill-Projet/chill-bundles!532
This commit is contained in:
		| @@ -98,7 +98,7 @@ final class GeographicalUnitStatAggregator implements AggregatorInterface | ||||
|             'acp_geog_units' | ||||
|         ); | ||||
|  | ||||
|         $qb->andWhere($qb->expr()->eq('acp_geog_units.layer', ':acp_geog_unit_layer')); | ||||
|         $qb->andWhere($qb->expr()->in('acp_geog_units.layer', ':acp_geog_unit_layer')); | ||||
|  | ||||
|         $qb->setParameter('acp_geog_unit_layer', $data['level']); | ||||
|  | ||||
| @@ -129,6 +129,8 @@ final class GeographicalUnitStatAggregator implements AggregatorInterface | ||||
|                 'class' => GeographicalUnitLayer::class, | ||||
|                 'choices' => $this->geographicalUnitLayerRepository->findAllHavingUnits(), | ||||
|                 'choice_label' => fn (GeographicalUnitLayer $item) => $this->translatableStringHelper->localize($item->getName()), | ||||
|                 'multiple' => true, | ||||
|                 'expanded' => true, | ||||
|             ]); | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -101,6 +101,8 @@ class GeographicalUnitAggregator implements AggregatorInterface | ||||
|                 'class' => GeographicalUnitLayer::class, | ||||
|                 'choices' => $this->geographicalUnitLayerRepository->findAllHavingUnits(), | ||||
|                 'choice_label' => fn (GeographicalUnitLayer $item) => $this->translatableStringHelper->localize($item->getName()), | ||||
|                 'multiple' => true, | ||||
|                 'expanded' => true, | ||||
|             ]); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user