Commits

timtoo committed 7db2b89

don't save blank note

Comments (0)

Files changed (1)

     member = coop.models.Member.objects.get(pk=member_id)
 
     if request.POST.get('add-note'):
-        viewlib.logEvent(request, 1, request.POST['member_id'],
-                request.POST['member_event_detail'])
+        if request.POST.get('member_event_detail', '').strip():
+            viewlib.logEvent(request, 1, request.POST['member_id'],
+                    request.POST['member_event_detail'])
 
     if request.POST.get('resign'):
         if request.POST.get('confirm-resign'):