Project

General

Profile

« Previous | Next » 

Revision 1095

Fixed: can not lock a topic when creating it.

View differences:

trunk/app/models/message.rb
36 36
  
37 37
  def validate_on_create
38 38
    # Can not reply to a locked topic
39
    errors.add_to_base 'Topic is locked' if root.locked?
39
    errors.add_to_base 'Topic is locked' if root.locked? && self != root
40 40
  end
41 41
  
42 42
  def after_create

Also available in: Unified diff