From cfc13ccf8b3d23cb639376b8a027b37756d1ca2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 23 Jul 2008 13:07:33 +0200 Subject: [PATCH] Prevent to have issue title with more than 128 char --- tryton/common/common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tryton/common/common.py b/tryton/common/common.py index 6d1cf82e7b..956efbcea5 100644 --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -415,7 +415,10 @@ def send_bugtracker(msg, parent): for line in msg.splitlines(): #don't use empty line nor ^ from sql error if line and '^' != line.strip(): - title = line + if len(line) > 128: + title = line[:128] + '...' + else: + title = line issue_id = None msg_ids = server.filter('msg', None, {'summary': str(msg_md5)}) if msg_ids: