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 @@ ...@@ -50,9 +50,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>return {"social_title" : context.getSocialTitleTranslatedTitle(),\n <value> <string>return {"social_title" : getattr(context, \'getSocialTitleTranslatedTitle\', \'\'),\n
"first_name": context.getFirstName(),\n "title": context.getTitle(),\n
"last_name": context.getLastName()\n
}\n }\n
</string> </value> </string> </value>
</item> </item>
......
607 608
\ No newline at end of file \ 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