Commit 441fdef1 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Pass first name and last name together and fix code to not get social_title...

Pass first name and last name together and fix code to not get social_title when not exists. It can happens when the context is a Organisation.
parent 4176d6a5
......@@ -50,9 +50,8 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>return {"social_title" : context.getSocialTitleTranslatedTitle(),\n
"first_name": context.getFirstName(),\n
"last_name": context.getLastName()\n
<value> <string>return {"social_title" : getattr(context, \'getSocialTitleTranslatedTitle\', \'\'),\n
"title": context.getTitle(),\n
}\n
</string> </value>
</item>
......
607
\ No newline at end of file
608
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment