Commit ef8b9d3a authored by Ivan Tyagov's avatar Ivan Tyagov

stop exploding "Re: Re: .." to one level only.

parent 237e7381
......@@ -58,7 +58,11 @@ preferred_forum_quote_original_message= portal.ERP5Site_getUserPreferredForumSet
if discussion_post_uid is not None:\n
# set title & text_content\n
discussion_post = getattr(context, discussion_post_uid)\n
title = \'Re: %s\' %discussion_post.getTitle()\n
\n
title = discussion_post.getTitle()\n
if not title.lower().startswith(\'re:\'):\n
# stop exploding "Re: Re: .." to one level\n
title = \'Re: %s\' %title\n
context.REQUEST.set(\'discussion_post_title\', title)\n
if preferred_forum_quote_original_message:\n
author_dict = discussion_post.DiscussionPost_getAuthorDict()\n
......
111
\ No newline at end of file
112
\ 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