Skip to content

Commit

Permalink
Fix for Collection visibility not saving
Browse files Browse the repository at this point in the history
The `visibility` property needs to be present in the `Form`
class.
  • Loading branch information
little9 authored and bess committed Aug 15, 2019
1 parent 9752d78 commit badf0cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/forms/hyrax/forms/collection_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CollectionForm
:subject_names, :subject_geo, :subject_time_periods, :note,
:rights_documentation, :sensitive_material, :internal_rights_note,
:contact_information, :staff_note, :system_of_record_ID, :legacy_ark,
:primary_repository_ID]
:primary_repository_ID, :visibility]

self.required_fields = [:title, :holding_repository, :creator, :abstract, :primary_repository_ID]

Expand Down
4 changes: 2 additions & 2 deletions spec/forms/hyrax/forms/collection_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
:subject_names, :subject_geo, :subject_time_periods, :note,
:rights_documentation, :sensitive_material, :internal_rights_note,
:contact_information, :staff_note, :system_of_record_ID, :legacy_ark,
:primary_repository_ID]
:primary_repository_ID, :visibility]
end
end

Expand Down Expand Up @@ -92,7 +92,7 @@
:abstract, :primary_language, :finding_aid_link, :institution, :local_call_number, { keywords: [] },
{ subject_topics: [] }, { subject_names: [] }, { subject_geo: [] }, { subject_time_periods: [] },
{ note: [] }, :rights_documentation, :sensitive_material, :internal_rights_note, :contact_information,
{ staff_note: [] }, :system_of_record_ID, { legacy_ark: [] }, :primary_repository_ID,
{ staff_note: [] }, :system_of_record_ID, { legacy_ark: [] }, :primary_repository_ID, :visibility,
{ permissions_attributes: [:type, :name, :access, :id, :_destroy] }]
end
end
Expand Down

0 comments on commit badf0cf

Please sign in to comment.