Ignore:
Timestamp:
4 Apr 2014, 08:38:27 (11 years ago)
Author:
Henrik Bettermann
Message:

Show correct flash message color after payment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py

    r11579 r11581  
    9090            return
    9191        write_payments_log(student.student_id, self.context)
    92         msg, log = self.context.doAfterStudentPayment()
     92        flashtype, msg, log = self.context.doAfterStudentPayment()
    9393        if log is not None:
    9494            student.writeLogMessage(self, log)
    95         self.flash(msg)
     95        self.flash(msg, type=flashtype)
    9696        return
    9797
     
    123123            return
    124124        write_payments_log(applicant.applicant_id, self.context)
    125         msg, log = self.context.doAfterApplicantPayment()
     125        flashtype, msg, log = self.context.doAfterApplicantPayment()
    126126        if log is not None:
    127127            applicant.writeLogMessage(self, log)
    128         self.flash(msg)
     128        self.flash(msg, type=flashtype)
    129129        return
    130130
Note: See TracChangeset for help on using the changeset viewer.