web2py/web2py — Issue #4: MENU helper issue
Author: ilvalle
Created: 2012-03-09 09:08:53+00:00
State: open

I think that there is small issue in the serialize function provided by the MENU helper. At line 2110 (html.py) the variable link should be replaced by the variable name. The code should be:

```python
[...]
(name, active, link) = item[:3]
if isinstance(name,DIV):
li = LI(name)
[...]
```

instead of :

```python
[...]
(name, active, link) = item[:3]
if isinstance(link,DIV):
li = LI(link)
[...]
```