Commit 6e07d4c7 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_dicussion: take enable preferences only in ERP5Site_getUserPreferredForumSettingDict

also remove a useless portal_catalog parameter
parent 67aaa82b
...@@ -62,9 +62,8 @@ def getPreferredForumSignature(username):\n ...@@ -62,9 +62,8 @@ def getPreferredForumSignature(username):\n
\'preferred_forum_quote_original_message\': False}\n \'preferred_forum_quote_original_message\': False}\n
preference = portal.portal_catalog.getResultValue(\n preference = portal.portal_catalog.getResultValue(\n
portal_type=\'Preference\',\n portal_type=\'Preference\',\n
owner = username,\n owner = username)\n
preference_state=\'enabled\')\n if preference is not None and preference.getPreferenceState() == "enabled":\n
if preference is not None:\n
result[\'preferred_forum_signature\'] = preference.getPreferredForumSignature()\n result[\'preferred_forum_signature\'] = preference.getPreferredForumSignature()\n
result[\'preferred_forum_quote_original_message\'] = preference.getPreferredForumQuoteOriginalMessage()\n result[\'preferred_forum_quote_original_message\'] = preference.getPreferredForumQuoteOriginalMessage()\n
\n \n
......
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