Révision 1eca5abc
Ajouté par Thomas Noël il y a plus de 12 ans
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') |
Formats disponibles : Unified diff
don't display None values in myspace (but display field name)
fix #1205 (really) http://dev.entrouvert.org/issues/1205