Ignore:
Timestamp:
5 Feb 2020, 22:29:40 (5 years ago)
Author:
Henrik Bettermann
Message:

Don't show 'Base Data' header on slips if no form fields do follow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r15986 r15988  
    798798        # Insert student data table
    799799        if student is not None:
    800             bd_translation = trans(_('Base Data'), portal_language)
    801             data.append(Paragraph(bd_translation, HEADING_STYLE))
     800            if view.form_fields:
     801                bd_translation = trans(_('Base Data'), portal_language)
     802                data.append(Paragraph(bd_translation, HEADING_STYLE))
    802803            data.append(render_student_data(
    803804                studentview, view.context, omit_fields, lang=portal_language,
Note: See TracChangeset for help on using the changeset viewer.