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
\'preferred_forum_quote_original_message\': False}\n
preference = portal.portal_catalog.getResultValue(\n
portal_type=\'Preference\',\n
owner = username,\n
preference_state=\'enabled\')\n
if preference is not None:\n
owner = username)\n
if preference is not None and preference.getPreferenceState() == "enabled":\n
result[\'preferred_forum_signature\'] = preference.getPreferredForumSignature()\n
result[\'preferred_forum_quote_original_message\'] = preference.getPreferredForumQuoteOriginalMessage()\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