Fix bug.
This commit is contained in:
parent
10f7e57270
commit
379f26c771
|
@ -107,7 +107,9 @@ class Bulletin
|
||||||
before_create :set_expire
|
before_create :set_expire
|
||||||
before_save :check_limit
|
before_save :check_limit
|
||||||
before_save do
|
before_save do
|
||||||
|
if @is_hidden_changed.nil? || @is_hidden_changed != true
|
||||||
@is_hidden_changed = self.is_hidden_changed?
|
@is_hidden_changed = self.is_hidden_changed?
|
||||||
|
end
|
||||||
if self.is_top_changed? && !self.is_top
|
if self.is_top_changed? && !self.is_top
|
||||||
self.sort_number = nil
|
self.sort_number = nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue