mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix bug when setting civility to null in on the fly
This commit is contained in:
parent
1031f0d40e
commit
dd4d463c42
@ -229,18 +229,14 @@ export default {
|
|||||||
data = this.$refs.castThirdparty.$data.thirdparty;
|
data = this.$refs.castThirdparty.$data.thirdparty;
|
||||||
// console.log('data original', data);
|
// console.log('data original', data);
|
||||||
data.parent = {type: "thirdparty", id: this.parent.id};
|
data.parent = {type: "thirdparty", id: this.parent.id};
|
||||||
data.civility = {type: 'chill_main_civility', id: data.civility.id};
|
data.civility = data.civility !== null ? {type: 'chill_main_civility', id: data.civility.id} : null;
|
||||||
data.profession = {type: 'third_party_profession', id: data.profession.id};
|
data.profession = data.profession !== null ? {type: 'third_party_profession', id: data.profession.id} : null;
|
||||||
} else {
|
} else {
|
||||||
type = this.$refs.castNew.radioType;
|
type = this.$refs.castNew.radioType;
|
||||||
data = this.$refs.castNew.castDataByType();
|
data = this.$refs.castNew.castDataByType();
|
||||||
// console.log('type', type);
|
// console.log('type', type);
|
||||||
if (null !== data.civility) {
|
data.civility = data.civility !== null ? {type: 'chill_main_civility', id: data.civility.id} : null;
|
||||||
data.civility = {type: 'chill_main_civility', id: data.civility.id};
|
data.profession = data.profession !== null ? {type: 'third_party_profession', id: data.profession.id} : null;
|
||||||
}
|
|
||||||
if (null !== data.profession) {
|
|
||||||
data.profession = {type: 'third_party_profession', id: data.profession.id};
|
|
||||||
}
|
|
||||||
// console.log('onthefly data', data);
|
// console.log('onthefly data', data);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user