diff --git a/plugins/chat/app/models/chat_channel.rb b/plugins/chat/app/models/chat_channel.rb index 7f537161ee4..f46746592d3 100644 --- a/plugins/chat/app/models/chat_channel.rb +++ b/plugins/chat/app/models/chat_channel.rb @@ -21,7 +21,7 @@ class ChatChannel < ActiveRecord::Base }, presence: true, allow_nil: true - validate :ensure_slug_ok + validate :ensure_slug_ok, if: :slug_changed? before_validation :generate_auto_slug scope :public_channels,