Skip to content

Commit

Permalink
Do not assume collection_id is passed into controller
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadel committed Sep 3, 2021
1 parent 1bab2d7 commit a7a151e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/zizia/csv_imports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def create_params
def preserve_cache
return unless params['csv_import']
@csv_import.manifest_cache = params['csv_import']['manifest_cache']
@csv_import.fedora_collection_id = params['csv_import']['fedora_collection_id']
@csv_import.fedora_collection_id = params['csv_import']['fedora_collection_id'] if params['csv_import']['fedora_collection_id'].present?
@csv_import.update_actor_stack = params['csv_import']['update_actor_stack']
end
end
Expand Down

0 comments on commit a7a151e

Please sign in to comment.