Household edit: end date field deleted

This commit is contained in:
LenaertsJ 2021-11-08 11:03:37 +00:00 committed by Julien Fastré
parent 21e419b338
commit e4f8ada236
3 changed files with 2 additions and 9 deletions

View File

@ -25,6 +25,7 @@ and this project adheres to
* [person] show current address in search results * [person] show current address in search results
* [person] show alt names in search results * [person] show alt names in search results
* [admin]: links to activity admin section added again. * [admin]: links to activity admin section added again.
* [household]: endDate field deleted from household edit form.
* [household]: View accompanying periods of current and old household members. * [household]: View accompanying periods of current and old household members.
* [tasks]: different layout for task list / my tasks, and fix link to tasks in alert or in warning * [tasks]: different layout for task list / my tasks, and fix link to tasks in alert or in warning
* [admin]: links to activity admin section added again. * [admin]: links to activity admin section added again.

View File

@ -16,13 +16,7 @@ class HouseholdMemberType extends AbstractType
->add('startDate', ChillDateType::class, [ ->add('startDate', ChillDateType::class, [
'label' => 'household.Start date', 'label' => 'household.Start date',
'input' => 'datetime_immutable', 'input' => 'datetime_immutable',
]) ]);
->add('endDate', ChillDateType::class, [
'label' => 'household.End date',
'input' => 'datetime_immutable',
'required' => false
])
;
if ($options['data']->getPosition()->isAllowHolder()) { if ($options['data']->getPosition()->isAllowHolder()) {
$builder $builder
->add('holder', ChoiceType::class, [ ->add('holder', ChoiceType::class, [

View File

@ -193,8 +193,6 @@ class HouseholdMemberControllerTest extends WebTestCase
$form = $crawler->selectButton('Enregistrer') $form = $crawler->selectButton('Enregistrer')
->form(); ->form();
$form['household_member[endDate]'] = (new \DateTime('tomorrow'))
->format('Y-m-d');
$crawler = $client->submit($form); $crawler = $client->submit($form);