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

make change set forms allow multiple values for title #5511

Merged
merged 1 commit into from Mar 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/metadata/core_metadata.yaml
Expand Up @@ -8,7 +8,7 @@ attributes:
form:
required: true
primary: true
multiple: false
multiple: true
date_modified:
type: date_time
date_uploaded:
Expand Down
Expand Up @@ -303,7 +303,7 @@
get :edit, params: { id: work.id }

expect(assigns[:form])
.to have_attributes(title: work.title.first, version: an_instance_of(String))
.to have_attributes(title: work.title, version: an_instance_of(String))
end

context 'and the work has member FileSets' do
Expand Down
2 changes: 1 addition & 1 deletion spec/services/hyrax/simple_schema_loader_spec.rb
Expand Up @@ -34,7 +34,7 @@
describe '#form_definitions_for' do
it 'provides form configuration' do
expect(schema_loader.form_definitions_for(schema: :core_metadata))
.to eq(title: { required: true, primary: true, multiple: false })
.to eq(title: { required: true, primary: true, multiple: true })
end
end
end