Changeset 13350


Ignore:
Timestamp:
26 Oct 2015, 14:44:46 (9 years ago)
Author:
Henrik Bettermann
Message:

Redirect to the correct edit page (will be further customized in AAUE).

File:
1 edited

Legend:

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

    r13349 r13350  
    23152315    def all_required_fields_filled(self):
    23162316        if not self.context.email:
    2317             return _("Email address is missing.")
     2317            return _("Email address is missing."), 'edit_base'
    23182318        if not self.context.phone:
    2319             return _("Phone number is missing.")
     2319            return _("Phone number is missing."), 'edit_base'
    23202320        return
    23212321
     
    23362336            self.redirect(self.url(self.context, 'change_portrait'))
    23372337            return
    2338         arf_warning = self.all_required_fields_filled
    2339         if arf_warning:
     2338        if self.all_required_fields_filled:
     2339            arf_warning = self.all_required_fields_filled[0]
     2340            arf_redirect = self.all_required_fields_filled[1]
    23402341            self.flash(arf_warning, type="warning")
    2341             self.redirect(self.url(self.context, 'edit_base'))
     2342            self.redirect(self.url(self.context, arf_redirect))
    23422343            return
    23432344        if self.with_ac:
Note: See TracChangeset for help on using the changeset viewer.