Project

General

Profile

« Previous | Next » 

Revision 0bd9b1fa

Added by Thomas Noël over 12 years ago

don't display None values in myspace

fix #1205

View differences:

extra/modules/myspace.ptl
432 432
                if not hasattr(field, str('get_view_value')):
433 433
                    continue
434 434
                value = user.form_data.get(field.id)
435
                '<li>'
436
                field.label
437
                ' : '
438
                field.get_view_value(value)
439
                '</li>'
435
                if value:
436
                    '<li>'
437
                    field.label
438
                    ' : ' 
439
                    field.get_view_value(value)
440
                    '</li>'
440 441
            '</ul>'
441 442
        else:
442 443
            '<p>%s</p>' % _('Empty profile')

Also available in: Unified diff