Roundup Tracker - Issues

Issue 663855

classification
cgi/client.py adds synthetic property in parsePropsFromForm
Type: Severity: normal
Components: None Versions:
process
Status: closed fixed
:
: : stefan
Priority: normal :

Created on 2003-01-07 17:47 by stefan, last changed 2003-01-07 17:47 by stefan.

Messages
msg565 Author: [hidden] (stefan) Date: 2003-01-07 17:47
the offending line is clients.py:1270

I use '<input name=":add:solves" size="20">' in my form
to add items to a 'solves' MultiLink attribute. However,
even if the field remains empty when I commit, the line

value = [i.strip() for i in value.value.split(',')]

will generate [''] from that, which, then, triggers the
error message 

'Error: new property "solves": not a bug'

(solves is a MultiLink attribute to entities of class
'bug')

I think a fix would be to remove all empty elements from
the 'value'. (which would make the code also more
robust for cases where users typed in something like
'12,13,' instead of '12,13'...)
History
Date User Action Args
2003-01-07 17:47:51stefancreate