return interchange of name and text back to how it was before -> solves one bug recreates the other

This commit is contained in:
Julie Lenaerts 2022-02-09 09:53:15 +01:00
parent 769700fe83
commit 41bddf2db6
5 changed files with 17 additions and 17 deletions

View File

@ -220,7 +220,7 @@ export default {
data = {
"type": "thirdparty",
"kind": "child",
"name": data.name,
"name": data.text,
"isChild": true,
"parent": {"type": "thirdparty", "id": this.parent.id},
"civility": {"id": data.civility},

View File

@ -451,7 +451,7 @@ let initPromise = (root) => Promise.all([getScopesPromise(root), accompanyingCou
}));
}
else if (payload.type === 'thirdparty') {
body.name = payload.data.name;
body.name = payload.data.text;
body.email = payload.data.email;
body.telephone = payload.data.phonenumber;
body.address = { id: payload.data.address.address_id };

View File

@ -84,7 +84,7 @@
</div>
<div class="form-floating mb-3">
<input class="form-control form-control-lg" id="name" v-model="thirdparty.name" v-bind:placeholder="$t('thirdparty.name')" />
<input class="form-control form-control-lg" id="name" v-model="thirdparty.text" v-bind:placeholder="$t('thirdparty.name')" />
<label for="name">{{ $t('thirdparty.name') }}</label>
</div>