Browse Source

Correctly change thread state

Ralfp 12 years ago
parent
commit
25a727ac9b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/apps/threadtype/posting/newreply.py

+ 1 - 1
misago/apps/threadtype/posting/newreply.py

@@ -87,7 +87,7 @@ class NewReplyBaseView(PostingBaseView):
 
 
         # Set thread status
         # Set thread status
         if 'close_thread' in form.cleaned_data:
         if 'close_thread' in form.cleaned_data:
-            self.thread.closed = form.cleaned_data['close_thread']
+            self.thread.closed = not self.thread.closed
         if 'thread_weight' in form.cleaned_data:
         if 'thread_weight' in form.cleaned_data:
             self.thread.weight = form.cleaned_data['thread_weight']
             self.thread.weight = form.cleaned_data['thread_weight']