Changeset 16302


Ignore:
Timestamp:
5 Nov 2020, 11:25:42 (4 years ago)
Author:
Henrik Bettermann
Message:

Set maximum number of bulk emails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r16300 r16302  
    349349            entries = [entries]
    350350        entries.sort()
     351        if 'send_email' in form and len(entries)>50:
     352            self.flash(_(
     353                'Maximum of 50 emails can be sent. Please select less students.'),
     354                type="warning")
     355            return
    351356        deleted = []
    352357        emails_tobesent = []
Note: See TracChangeset for help on using the changeset viewer.