Skip to content

Commit

Permalink
🐛 User couldn't edit file sets
Browse files Browse the repository at this point in the history
parent_doc is not a solr document, so calling ['has_model_ssim'] produced and error.
  • Loading branch information
ShanaLMoore committed Apr 19, 2024
1 parent 29f7e33 commit 307a1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/hyku_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def admin_only_tenant_creation?
end

def parent_path(parent_doc)
model = parent_doc['has_model_ssim'].first
model = parent_doc.has_model.first
path = "hyrax_#{model.underscore}_path"
main_app.send(path, parent_doc.id)
end
Expand Down

0 comments on commit 307a1c8

Please sign in to comment.