start to display profession/fonction of thirdparty

This commit is contained in:
Julie Lenaerts 2022-02-18 17:07:53 +01:00
parent bb8898a4ec
commit 874c90e0e0
2 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,8 @@
</badge-entity>
</div>
<p v-if="thirdparty.profession">{{ thirdparty.profession }}</p>
<p v-if="this.options.addInfo === true" class="moreinfo">
</p>
</div>
@ -111,6 +113,7 @@ export default {
props: ['thirdparty', 'options'],
computed: {
isMultiline: function() {
console.log('thirdparty', this.thirdparty)
if (this.options.isMultiline){
return this.options.isMultiline
} else {

View File

@ -45,6 +45,7 @@ class ThirdPartyNormalizer implements NormalizerAwareInterface, NormalizerInterf
'isChild' => $thirdParty->isChild(),
'parent' => $this->normalizer->normalize($thirdParty->getParent(), $format, $context),
'civility' => $this->normalizer->normalize($thirdParty->getCivility(), $format, $context),
'profession' => $this->normalizer->normalize($thirdParty->getProfession(), $format, $context),
'contactDataAnonymous' => $thirdParty->isContactDataAnonymous(),
];
}