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

HYRAX PAIR-TREE BUG: Creating a work with FileSet(s) doesn't set the proxyFor value in the created file set objects. #415

Open
bwatson78 opened this issue Jul 18, 2024 · 0 comments
Labels
Backend bug Something isn't working Hyrax bug A bug confirmed to extend back to the Hyrax Rails Engine. Samvera Issues related to Samvera stack

Comments

@bwatson78
Copy link
Contributor

Attempting to edit a FileSet produces this error:

Showing /app/app/views/hyrax/file_sets/_form.html.erb where line #23 raised:

undefined method `to_model' for nil:NilClass

Extracted source (around line #23):

21
22
23
24
25
26
              

	

        class: 'btn btn-primary'
      ) %>
      <%= link_to t('.cancel'), parent_path(@parent), class: 'btn btn-link' %>
    </div>
  </div>
<% end %>

Trace of template inclusion: #<ActionView::Template bundle/ruby/3.2.0/bundler/gems/hyrax-59a42adfd57e/app/views/hyrax/file_sets/edit.html.erb locals=[]>

Rails.root: /app
Application Trace | Framework Trace | Full Trace
actionpack (6.1.7.8) lib/action_dispatch/routing/polymorphic_routes.rb:314:in `handle_list'
actionpack (6.1.7.8) lib/action_dispatch/routing/polymorphic_routes.rb:218:in `polymorphic_method'
actionpack (6.1.7.8) lib/action_dispatch/routing/polymorphic_routes.rb:139:in `polymorphic_path'
hyrax (59a42adfd57e) app/helpers/hyrax/file_set_helper.rb:20:in `parent_path'
app/views/hyrax/file_sets/_form.html.erb:23
actionview (6.1.7.8) lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
actionview (6.1.7.8) lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
actionview (6.1.7.8) lib/action_view/helpers/capture_helper.rb:45:in `capture'
actionview (6.1.7.8) lib/action_view/helpers/form_helper.rb:450:in `form_for'
simple_form (5.1.0) lib/simple_form/action_view_extensions/form_helper.rb:27:in `block in simple_form_for'
simple_form (5.1.0) lib/simple_form/action_view_extensions/form_helper.rb:46:in `with_simple_form_field_error_proc'
simple_form (5.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `simple_form_for'
app/views/hyrax/file_sets/_form.html.erb:1
actionview (6.1.7.8) lib/action_view/base.rb:247:in `public_send'
actionview (6.1.7.8) lib/action_view/base.rb:247:in `_run'
actionview (6.1.7.8) lib/action_view/template.rb:154:in `block in render'
activesupport (6.1.7.8) lib/active_support/notifications.rb:205:in `instrument'
actionview (6.1.7.8) lib/action_view/template.rb:345:in `instrument_render_template'
actionview (6.1.7.8) lib/action_view/template.rb:152:in `render'
xray-rails (f121814718c9) lib/xray/engine.rb:27:in `render_with_xray'
actionview (6.1.7.8) lib/action_view/renderer/partial_renderer.rb:285:in `block in render_partial_template'
activesupport (6.1.7.8) lib/active_support/notifications.rb:203:in `block in instrument'
activesupport (6.1.7.8) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
activesupport (6.1.7.8) lib/active_support/notifications.rb:203:in `instrument'
actionview (6.1.7.8) lib/action_view/renderer/partial_renderer.rb:280:in `render_partial_template'
actionview (6.1.7.8) lib/action_view/renderer/partial_renderer.rb:271:in `render'
actionview (6.1.7.8) lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object'
actionview (6.1.7.8) lib/action_view/renderer/renderer.rb:53:in `render_partial'
actionview (6.1.7.8) lib/action_view/helpers/rendering_helper.rb:45:in `render'
hyrax (59a42adfd57e) app/views/hyrax/file_sets/edit.html.erb:34 

Associated Hyrax bug ticket: samvera/hyrax#6863

@bwatson78 bwatson78 added Backend bug Something isn't working Hyrax bug A bug confirmed to extend back to the Hyrax Rails Engine. Samvera Issues related to Samvera stack labels Jul 18, 2024
@bwatson78 bwatson78 changed the title HYRAX PAIR-TREE BUG: Creating a work with FileSet(s) doesn't set the proxyFor value in the create file set objects. HYRAX PAIR-TREE BUG: Creating a work with FileSet(s) doesn't set the proxyFor value in the created file set objects. Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend bug Something isn't working Hyrax bug A bug confirmed to extend back to the Hyrax Rails Engine. Samvera Issues related to Samvera stack
Projects
None yet
Development

No branches or pull requests

1 participant