Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes issue with files uploaded when creating a new dataset in the wizard #1089

Merged
merged 2 commits into from
Apr 24, 2023

Conversation

hectorcorrea
Copy link
Member

Files uploaded when creating a new dataset in the wizard were not being processed. @hhkitsune, @neggink, and I noticed this during the last rounds of user testing.

This PR makes sure these files are processed and uploaded correctly.

@@ -168,11 +168,12 @@ def file_upload

def file_uploaded
@work = Work.find(params[:id])
if pre_curation_uploads_param
@work.pre_curation_uploads.attach(pre_curation_uploads_param)
files = work_params.dig("patch", "pre_curation_uploads") || []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jrgriffiniii jrgriffiniii merged commit 3c973b7 into main Apr 24, 2023
@jrgriffiniii jrgriffiniii deleted the file-upload-on-new branch April 24, 2023 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants