mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
Create 3rd party contact: fix adding civility and profession to payload
This commit is contained in:
@@ -232,13 +232,18 @@ export default {
|
||||
"name": data.text,
|
||||
"isChild": true,
|
||||
"parent": {"type": "thirdparty", "id": this.parent.id},
|
||||
"civility": {"id": data.civility},
|
||||
"profession": {"id": data.profession},
|
||||
"comment": data.comment,
|
||||
"telephone": data.phonenumber,
|
||||
"email": data.email,
|
||||
"address": this.parent.address
|
||||
}
|
||||
if ("civility" in data) {
|
||||
Object.assign(data, {"civility": {"id": data.civility}} )
|
||||
}
|
||||
if ("profession" in data) {
|
||||
Object.assign(data, {"profession": {"id": data.profession}} )
|
||||
}
|
||||
|
||||
} else {
|
||||
type = this.$refs.castNew.radioType;
|
||||
data = this.$refs.castNew.castDataByType();
|
||||
|
Reference in New Issue
Block a user