update putMember
This commit is contained in:
parent
48b7688faa
commit
5f667686d0
|
@ -117,8 +117,8 @@ class Api
|
||||||
{
|
{
|
||||||
$this->assertLoggedIn();
|
$this->assertLoggedIn();
|
||||||
$member = Member::fromAttributes($attributes);
|
$member = Member::fromAttributes($attributes);
|
||||||
$existing = $this->member($member->group_id, $member->id);
|
|
||||||
if (data_get($attributes, 'id')) {
|
if (data_get($attributes, 'id')) {
|
||||||
|
$existing = $this->member($member->group_id, $member->id);
|
||||||
$payload = array_merge($existing, $member->toNami());
|
$payload = array_merge($existing, $member->toNami());
|
||||||
$payload['kontoverbindung'] = json_encode(data_get($payload, 'kontoverbindung', []));
|
$payload['kontoverbindung'] = json_encode(data_get($payload, 'kontoverbindung', []));
|
||||||
$url = $this->url.'/ica/rest/nami/mitglied/filtered-for-navigation/gruppierung/gruppierung/'.$member->group_id.'/'.$member->id;
|
$url = $this->url.'/ica/rest/nami/mitglied/filtered-for-navigation/gruppierung/gruppierung/'.$member->group_id.'/'.$member->id;
|
||||||
|
|
Loading…
Reference in New Issue