Skip to content
Snippets Groups Projects
Commit 19bfdcf4 authored by James Lopez's avatar James Lopez
Browse files

fix import data creation

parent ced56641
No related branches found
No related tags found
1 merge request!3066Fix for import_url fields on projects containing third-party credentials
Pipeline #
Loading
Loading
@@ -420,9 +420,8 @@ class Project < ActiveRecord::Base
end
 
def create_or_update_import_data(credentials)
project_import_data = import_data || ProjectImportData.new
project_import_data = import_data || build_import_data
project_import_data.credentials = credentials
project_import_data.project_id = id
project_import_data.save
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment