Ignore:
Timestamp:
13 Jul 2016, 09:47:28 (8 years ago)
Author:
Henrik Bettermann
Message:

display_actions must contain 2 elements.

File:
1 edited

Legend:

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

    r14027 r14029  
    310310        state = IWorkflowState(self.context).getState()
    311311        # If the form is unlocked, applicants are allowed to save the form
    312         actions = [[_('Save')],]
     312        # and remove unused tickets.
     313        actions = [[_('Save')], []]
    313314        # Only in state started they can also add tickets.
    314315        if state == STARTED:
    315             actions = [[_('Save')], [_('Add online payment ticket'),]]
     316            actions = [[_('Save')],
     317                [_('Add online payment ticket')]]
    316318        # In state paid, they can submit the data and further add tickets
    317319        # if the application is special.
    318320        elif self.context.special and state == PAID:
    319321            actions = [[_('Save'), _('Finally Submit')],
    320                 [_('Add online payment ticket'),]]
     322                [_('Add online payment ticket')]]
    321323        elif state == PAID:
    322             actions = [[_('Save'), _('Finally Submit')],]
     324            actions = [[_('Save'), _('Finally Submit')], []]
    323325        return actions
    324326
Note: See TracChangeset for help on using the changeset viewer.