Ignore:
Timestamp:
1 Dec 2022, 10:00:01 (22 months ago)
Author:
Henrik Bettermann
Message:

More modifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/browser.py

    r17190 r17191  
    129129                   ]]
    130130        if state == STARTED:
    131             actions = [[_('Save')],
     131            actions = [[_('Save'), _('Save and Make Donation via USSD')],
    132132                [
    133133                 #_('Add online payment ticket'),
     
    181181        return
    182182
    183     @action(_('Make Donation via USSD Money Transfer'), style='primary')
     183    @action(_('Save and Make Donation via USSD'), style='primary')
    184184    def makeUSSDonation(self, **data):
    185         self.redirect(self.url(self.context, '@USSSD'))
     185        if self.upload_success is False:  # False is not None!
     186            # Error during image upload. Ignore other values.
     187            return
     188        self.applyData(self.context, **data)
     189        self.redirect(self.url(self.context, '@ussdinfo'))
    186190        return
    187191       
Note: See TracChangeset for help on using the changeset viewer.