A platform for community discussion. Free, open, simple.
FIX: Don't validate channel slug if it hasn't changed (#19498)
Daniel Waterworthd244eb0d7c02
diff --git a/plugins/chat/app/models/chat_channel.rb b/plugins/chat/app/models/chat_channel.rbindex 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_slugscope :public_channels,