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;
|
||||
// console.log('data original', data);
|
||||
data.parent = {type: "thirdparty", id: this.parent.id};
|
||||
data.civility = {type: 'chill_main_civility', id: data.civility.id};
|
||||
data.profession = {type: 'third_party_profession', id: data.profession.id};
|
||||
data.civility = data.civility !== null ? {type: 'chill_main_civility', id: data.civility.id} : null;
|
||||
data.profession = data.profession !== null ? {type: 'third_party_profession', id: data.profession.id} : null;
|
||||
} else {
|
||||
type = this.$refs.castNew.radioType;
|
||||
data = this.$refs.castNew.castDataByType();
|
||||
// console.log('type', type);
|
||||
if (null !== data.civility) {
|
||||
data.civility = {type: 'chill_main_civility', id: data.civility.id};
|
||||
}
|
||||
if (null !== data.profession) {
|
||||
data.profession = {type: 'third_party_profession', id: data.profession.id};
|
||||
}
|
||||
data.civility = data.civility !== null ? {type: 'chill_main_civility', id: data.civility.id} : null;
|
||||
data.profession = data.profession !== null ? {type: 'third_party_profession', id: data.profession.id} : null;
|
||||
// console.log('onthefly data', data);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user