Project

General

Profile

« Previous | Next » 

Revision 1eca5abc

Added by Thomas Noël over 12 years ago

don't display None values in myspace (but display field name)

fix #1205 (really) http://dev.entrouvert.org/issues/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
                ' : ' 
435 438
                if value:
436
                    '<li>'
437
                    field.label
438
                    ' : ' 
439 439
                    field.get_view_value(value)
440
                    '</li>'
440
                '</li>'
441 441
            '</ul>'
442 442
        else:
443 443
            '<p>%s</p>' % _('Empty profile')

Also available in: Unified diff