Compare commits
11 Commits
1ba3d11325
...
56af6f4cbf
| Author | SHA1 | Date |
|---|---|---|
|
|
56af6f4cbf | |
|
|
ac88df2cad | |
|
|
adc78a65e7 | |
|
|
c7618b0545 | |
|
|
e5c2599846 | |
|
|
3a80e3bcee | |
|
|
4abdac75f6 | |
|
|
1e4361c709 | |
|
|
8924774ed0 | |
|
|
f0ed9185ba | |
|
|
f9deb56d22 |
|
|
@ -1,5 +1,9 @@
|
||||||
# Letzte Änderungen
|
# Letzte Änderungen
|
||||||
|
|
||||||
|
### 1.12.22
|
||||||
|
|
||||||
|
- Bei Mitgliedern wird nun auch die geschäftliche tel-nr aktualisiert
|
||||||
|
|
||||||
### 1.12.21
|
### 1.12.21
|
||||||
|
|
||||||
- Reply-To-Header bei Versand von Prävention-und-Veranstaltungs-Mails kann nun eingestellt werden
|
- Reply-To-Header bei Versand von Prävention-und-Veranstaltungs-Mails kann nun eingestellt werden
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,7 @@ class MemberRequest extends FormRequest
|
||||||
'send_newspaper' => 'boolean',
|
'send_newspaper' => 'boolean',
|
||||||
'main_phone' => ['nullable', new ValidPhoneRule('Telefon (Eltern)')],
|
'main_phone' => ['nullable', new ValidPhoneRule('Telefon (Eltern)')],
|
||||||
'mobile_phone' => ['nullable', new ValidPhoneRule('Handy (Eltern)')],
|
'mobile_phone' => ['nullable', new ValidPhoneRule('Handy (Eltern)')],
|
||||||
|
'work_phone' => ['nullable', new ValidPhoneRule('Tel geschäftlich')],
|
||||||
'invoice_address' => '',
|
'invoice_address' => '',
|
||||||
'gender_id' => 'nullable|exists:genders,id',
|
'gender_id' => 'nullable|exists:genders,id',
|
||||||
'region_id' => 'nullable|exists:regions,id',
|
'region_id' => 'nullable|exists:regions,id',
|
||||||
|
|
|
||||||
|
|
@ -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 () {
|
it('testItUpdatesContact', function () {
|
||||||
$this->withoutExceptionHandling()->login()->loginNami();
|
$this->withoutExceptionHandling()->login()->loginNami();
|
||||||
$member = factory()->notInNami()->create();
|
$member = factory()->notInNami()->create();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue