mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
person: add address when creating a person
This commit is contained in:
@@ -240,6 +240,13 @@ export default {
|
||||
if (typeof data.profession !== 'undefined' && null !== data.profession) {
|
||||
data.profession = data.profession !== null ? {type: 'third_party_profession', id: data.profession.id} : null;
|
||||
}
|
||||
if (null !== data.addressId) {
|
||||
console.log(data)
|
||||
//TODO make a good address object
|
||||
// attach the addressId
|
||||
// test if this condition is safe
|
||||
|
||||
}
|
||||
// console.log('onthefly data', data);
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user