mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix create person on the fly
This commit is contained in:
parent
3babbe5e84
commit
1812592d43
@ -235,8 +235,12 @@ export default {
|
|||||||
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);
|
||||||
data.civility = data.civility !== null ? {type: 'chill_main_civility', id: data.civility.id} : null;
|
if (typeof data.civility !== 'undefined' && null !== data.civility) {
|
||||||
data.profession = data.profession !== null ? {type: 'third_party_profession', id: data.profession.id} : null;
|
data.civility = data.civility !== null ? {type: 'chill_main_civility', id: data.civility.id} : null;
|
||||||
|
}
|
||||||
|
if (typeof data.civility !== 'undefined' && null !== data.profession) {
|
||||||
|
data.profession = data.profession !== null ? {type: 'third_party_profession', id: data.profession.id} : null;
|
||||||
|
}
|
||||||
// console.log('onthefly data', data);
|
// console.log('onthefly data', data);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -69,7 +69,7 @@ const messages = {
|
|||||||
person: "Usager"
|
person: "Usager"
|
||||||
},
|
},
|
||||||
holder: "Titulaire",
|
holder: "Titulaire",
|
||||||
years_old: "an | {n} an | {n} ans",
|
years_old: "1 an | {n} an | {n} ans",
|
||||||
residential_address: "Adresse de résidence",
|
residential_address: "Adresse de résidence",
|
||||||
located_at: "réside chez"
|
located_at: "réside chez"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user