mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
Adding a second phone number to thirdparty entity
This commit is contained in:
@@ -745,7 +745,8 @@ export default {
|
||||
let body = { type: payload.type };
|
||||
body.name = payload.data.text;
|
||||
body.email = payload.data.email;
|
||||
body.telephone = payload.data.phonenumber;
|
||||
body.telephone = payload.data.telephone;
|
||||
body.telephone2 = payload.data.telephone2;
|
||||
body.address = { id: payload.data.address.address_id };
|
||||
|
||||
makeFetch(
|
||||
@@ -755,7 +756,9 @@ export default {
|
||||
)
|
||||
.then((response) => {
|
||||
this.$store.dispatch("updateThirdParty", response);
|
||||
this.$refs.onTheFly.closeModal();
|
||||
for (let otf of this.$refs.onTheFly) {
|
||||
otf.closeModal();
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
if (error.name === "ValidationException") {
|
||||
|
Reference in New Issue
Block a user