Ignore:
Timestamp:
28 Aug 2020, 08:35:03 (4 years ago)
Author:
Henrik Bettermann
Message:

Check courses before applying data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r16218 r16219  
    11161116    @action(_('Save'), style='primary')
    11171117    def save(self, **data):
     1118        error, changed_courses = self.saveCourses()
     1119        if error:
     1120            self.flash(error, type='danger')
     1121            return
    11181122        form = self.request.form
    11191123        password = form.get('password', None)
     
    11341138        else:
    11351139            changed_fields = []
    1136         error, changed_courses = self.saveCourses()
    1137         if error:
    1138             self.flash(error, type='danger')
    1139             return
    11401140        changed_fields += changed_courses
    11411141        if password:
Note: See TracChangeset for help on using the changeset viewer.