Fix #3473: Validation warnings for no artist/copyright are still shown on upload failure.
This commit is contained in:
@@ -56,7 +56,10 @@ class UploadsController < ApplicationController
|
|||||||
|
|
||||||
if @upload.errors.empty?
|
if @upload.errors.empty?
|
||||||
post = @upload.process!
|
post = @upload.process!
|
||||||
flash[:notice] = post.warnings.full_messages.join(".\n \n") if post.present? && post.warnings.any?
|
|
||||||
|
if post.present? && post.valid? && post.warnings.any?
|
||||||
|
flash[:notice] = post.warnings.full_messages.join(".\n \n")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
save_recent_tags
|
save_recent_tags
|
||||||
|
|||||||
Reference in New Issue
Block a user