Changeset 15636


Ignore:
Timestamp:
3 Oct 2019, 20:51:02 (5 years ago)
Author:
Henrik Bettermann
Message:

Don't call dataNotComplete twice.

File:
1 edited

Legend:

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

    r15634 r15636  
    12471247        if self.upload_success is False:  # False is not None!
    12481248            return # error during image upload. Ignore other values
    1249         if self.dataNotComplete(data):
    1250             self.flash(self.dataNotComplete(data), type='danger')
     1249        dnt = self.dataNotComplete(data)
     1250        if dnt:
     1251            self.flash(dnt, type='danger')
    12511252            return
    12521253        self.applyData(self.context, **data)
Note: See TracChangeset for help on using the changeset viewer.