fix channel video_id validation when updating
This commit is contained in:
1 parent
167f1ea6ae
commit
c0bc92b7e2
4 files changed
+12
-3
No files matched your search
@@ -202,7 +202,8 @@ class ChannelsController < ApplicationController
|
||||
@channel.assign_attributes(channel_params)
|
||||
|
||||
if !@channel.valid?
|
||||
flash[:alert] = @channel.errors.full_messages.join(', ')
|
||||
@channel.errors.add(:base, t(:channel_video_type_blank))
|
||||
flash[:alert] = @channel.errors.full_messages.join('. ')
|
||||
redirect_to channel_path(@channel.id, :anchor => "channelsettings") and return
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user