Compare commits

...

2 Commits

Author SHA1 Message Date
philipp lang f0ed9185ba Update changelog
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is failing Details
2025-11-18 12:36:53 +01:00
philipp lang f9deb56d22 Fix: Update work phone 2025-11-18 12:36:08 +01:00
3 changed files with 17 additions and 0 deletions

View File

@ -1,5 +1,9 @@
# Letzte Änderungen
### 1.12.22
- Bei Mitgliedern wird nun auch die geschäftliche tel-nr aktualisiert
### 1.12.21
- Reply-To-Header bei Versand von Prävention-und-Veranstaltungs-Mails kann nun eingestellt werden

View File

@ -75,6 +75,7 @@ class MemberRequest extends FormRequest
'send_newspaper' => 'boolean',
'main_phone' => ['nullable', new ValidPhoneRule('Telefon (Eltern)')],
'mobile_phone' => ['nullable', new ValidPhoneRule('Handy (Eltern)')],
'work_phone' => ['nullable', new ValidPhoneRule('Tel geschäftlich')],
'invoice_address' => '',
'gender_id' => 'nullable|exists:genders,id',
'region_id' => 'nullable|exists:regions,id',

View File

@ -157,6 +157,18 @@ it('testItSetsLocationToNull', function () {
]);
});
it('updates work phone', function () {
$this->withoutExceptionHandling()->login()->loginNami();
$member = factory()->notInNami()->create();
fakeRequest();
NamiPutMemberAction::allowToRun();
$this->patch("/member/{$member->id}", MemberUpdateRequestFactory::new()->noNami()->create([
'work_phone' => '+49 212 1353688',
]));
test()->assertDatabaseHas('members', ['work_phone' => '+49 212 1353688']);
});
it('testItUpdatesContact', function () {
$this->withoutExceptionHandling()->login()->loginNami();
$member = factory()->notInNami()->create();