mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 17:28:23 +00:00 
			
		
		
		
	[export] set the default date for accompanying period list
This commit is contained in:
		
							
								
								
									
										6
									
								
								.changes/unreleased/Feature-20230627-111222.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.changes/unreleased/Feature-20230627-111222.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| kind: Feature | ||||
| body: '[export] Set the default date of calculation of the accompanying period''s | ||||
|   list as "today"' | ||||
| time: 2023-06-27T11:12:22.296330037+02:00 | ||||
| custom: | ||||
|   Issue: "" | ||||
| @@ -20,6 +20,7 @@ use Chill\MainBundle\Export\Helper\ExportAddressHelper; | ||||
| use Chill\MainBundle\Export\Helper\UserHelper; | ||||
| use Chill\MainBundle\Export\ListInterface; | ||||
| use Chill\MainBundle\Form\Type\PickRollingDateType; | ||||
| use Chill\MainBundle\Service\RollingDate\RollingDate; | ||||
| use Chill\MainBundle\Service\RollingDate\RollingDateConverterInterface; | ||||
| use Chill\MainBundle\Templating\TranslatableStringHelperInterface; | ||||
| use Chill\PersonBundle\Entity\AccompanyingPeriod; | ||||
| @@ -146,7 +147,9 @@ class ListAccompanyingPeriod implements ListInterface, GroupedExportInterface | ||||
|     } | ||||
|     public function getFormDefaultData(): array | ||||
|     { | ||||
|         return []; | ||||
|         return [ | ||||
|             'calc_date' => new RollingDate(RollingDate::T_TODAY) | ||||
|         ]; | ||||
|     } | ||||
|  | ||||
|     public function getAllowedFormattersTypes() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user