Prevent to have issue title with more than 128 char

This commit is contained in:
Cédric Krier committed 2008-07-23 13:07:33 +02:00
1 parent 91a4ef213f
commit cfc13ccf8b
1 file changed
+4 -1
+4 -1
View File
@@ -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: