Ignore:
Timestamp:
6 Nov 2012, 10:57:07 (12 years ago)
Author:
Henrik Bettermann
Message:

Allow rejecting comment without clearance.

File:
1 edited

Legend:

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

    r9555 r9556  
    739739        self.applyData(self.context, **data)
    740740        comment = data['officer_comment']
    741         self.context.writeLogMessage(
    742             self, 'comment: %s' % comment.replace('\n', '<br>'))
    743         args = {'subject':message, 'body':comment}
     741        if comment:
     742            self.context.writeLogMessage(
     743                self, 'comment: %s' % comment.replace('\n', '<br>'))
     744            args = {'subject':message, 'body':comment}
     745        else:
     746            args = {'subject':message,}
    744747        self.redirect(self.url(self.context) +
    745748            '/contactstudent?%s' % urlencode(args))
Note: See TracChangeset for help on using the changeset viewer.