Changeset 17084 for main


Ignore:
Timestamp:
6 Sep 2022, 05:14:44 (2 years ago)
Author:
Henrik Bettermann
Message:

Charge and order fields must not be required.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/applicants
Files:
2 edited

Legend:

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

    r16945 r17084  
    617617            and not store.getFileByContext(self.context, attr=u'res_stat.pdf'):
    618618            return _('No statement of result pdf file uploaded.')
    619         #if self.target is not None \
    620         #    and self.target.startswith('tsc') \
    621         #    and not store.getFileByContext(self.context, attr=u'eligibility.pdf'):
    622         #    return _('No eligibility form pdf file uploaded.')
     619        if self.target is not None \
     620            and self.target.startswith('tsc') \
     621            and (not self.context.order or not self.context.charge):
     622            return _('Please select Type of Order and Transcript Charge.')
    623623        return False
    624624
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py

    r16945 r17084  
    429429        source = OrderSource(),
    430430        title = _(u'Type of Order'),
    431         required = True,
     431        required = False,
    432432        )
    433433
     
    444444        title = _(u'Transcript Charge'),
    445445        source = DestinationCostSource(),
    446         required = True,
     446        required = False,
    447447        readonly = False,
    448448        )
Note: See TracChangeset for help on using the changeset viewer.