mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Household edit: end date field deleted
This commit is contained in:
parent
21e419b338
commit
e4f8ada236
@ -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.
|
||||||
|
@ -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, [
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user