Ignore:
Timestamp:
4 Sep 2017, 16:50:20 (7 years ago)
Author:
Henrik Bettermann
Message:

Show ExportJUPEBResultSlip only if flash notice contains 'results'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py

    r14834 r14835  
    122122    @property
    123123    def target_url(self):
    124         if self.context.flash_notice and self.context.faccode == 'JUPEB':
     124        if self.context.flash_notice and self.context.faccode == 'JUPEB' \
     125            and 'results' in self.context.flash_notice.lower():
    125126            return self.view.url(self.view.context, self.target)
    126127        return False
Note: See TracChangeset for help on using the changeset viewer.