Roundup Tracker - Issues

Issue 611217

classification
menu() has problems when labelprop==None
Type: Severity: normal
Components: None Versions:
process
Status: closed fixed
:
: : richard, stefan
Priority: normal :

Created on 2002-09-18 18:39 by stefan, last changed 2002-09-18 18:39 by stefan.

Messages
msg343 Author: [hidden] (stefan) Date: 2002-09-18 18:39
I added by accident an empty issue. The next time I
used a form
that listed issues in a menu, I got an exception.

In (Multi)linkHTMLProperty.menu you set 'option' to be
the labelproperty of the objects linked to (which, in
my case, was
accidentally left empty).

Then you assign it to 'lab', and call 'len(lab)', so I
get an
exception since you take the length of 'None'...

I'd suggest to replace

option = linkcl.get(optionid, k)

with

option = linkcl.get(optionid, k) or ''
msg344 Author: [hidden] (richard) Date: 2002-09-18 22:23
Logged In: YES 
user_id=6405

Thanks for tracking that one down. 
 
History
Date User Action Args
2002-09-18 18:39:29stefancreate