Skip to content

Commit

Permalink
refactor fix userfiles_controller.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
MontrealSergiy authored Jan 13, 2025
1 parent 69d0d99 commit 1142729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BrainPortal/app/controllers/userfiles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ def create_collection #:nodoc:
# Check if the collection name chosen by the user already exists for this user on the data_provider
if current_user.userfiles.exists?(:name => collection_name, :data_provider_id => data_provider_id)
flash[:error] = "Error: collection with name '#{collection_name}' already exists."
redirect_to :action => :index, :format => request
redirect_to :action => :index
return
end

Expand Down

0 comments on commit 1142729

Please sign in to comment.