Bug #4712
closedEditing organization gives undefined method `parent_taxonomy_selected_location_path'
Description
When organisations are enabled, but not locations, you can get errors trying to resolve routes for the "other" taxonomy when editing an organisation.
ActionView::Template::Error (undefined method `parent_taxonomy_selected_location_path' for #<#<Class:0x000000077546d8>:0x00000007adf000>): 5: <%= select_f f, :parent_id, taxonomy.class.where("id NOT IN (#{taxonomy.subtree_ids.join(',')})").order(:title), :id, :title, { :include_blank => true }, 6: { :label => _('Parent'), :onchange => 'parent_taxonomy_changed(this);', 7: :help_inline => :indicator, 8: :'data-url' => parent_taxonomy_selected_location_path(taxonomy.id) 9: } %> 10: 11: <%= text_f f, :name %> app/views/taxonomies/_form.html.erb:8:in `block in _app_views_taxonomies__form_html_erb___4317518605146758171_66773220' app/helpers/layout_helper.rb:248:in `form_for' app/views/taxonomies/_form.html.erb:3:in `_app_views_taxonomies__form_html_erb___4317518605146758171_66773220' app/views/taxonomies/edit.html.erb:4:in `_app_views_taxonomies_edit_html_erb___4188087350678574917_64430140' app/controllers/concerns/foreman/controller/taxonomies_controller.rb:67:in `block in edit'
Updated by Ivan Necas almost 11 years ago
This is a blocker for testing Katello provisioning
Updated by Ohad Levy almost 11 years ago
Og Maciel wrote:
This blocks QE UI auto as well
As a workaround please enable locations too. It should be on by default IMHO.
Updated by Og Maciel almost 11 years ago
Even with location enabled I still see this issue. nm
Updated by Dominic Cleal almost 11 years ago
Og Maciel wrote:
Even with location enabled I still see this issue.
Works fine with locations enabled here. Did you restart Foreman or Apache after changing the configuration?
Updated by Lukas Zapletal almost 11 years ago
Works fine with locations enabled here. Did you restart Foreman or Apache after changing the configuration?
Yeah the Og's one is different I think (Katello needs to be enabled for that).
Updated by Ohad Levy almost 11 years ago
Lukas Zapletal wrote:
Yeah the Og's one is different I think (Katello needs to be enabled for that).
can you elaborate what is the difference? do we have a different stack trace when locations are enabled?
Updated by Lukas Zapletal almost 11 years ago
Sure, the one Og referred to was https://bugzilla.redhat.com/show_bug.cgi?id=1076562 I assume.
Updated by Mike McCune almost 11 years ago
The issue outlined in https://bugzilla.redhat.com/show_bug.cgi?id=1076562 (moved to POST) is no longer occurring but the situation outlined in this issue still is.
Updated by Joseph Magen almost 11 years ago
- Status changed from New to Assigned
- Assignee set to Joseph Magen
Updated by Dominic Cleal almost 11 years ago
- Status changed from Assigned to Ready For Testing
- Target version set to 1.8.4
Updated by Dominic Cleal almost 11 years ago
- Translation missing: en.field_release set to 4
Updated by Joseph Magen almost 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 630bb30321c11a74f46d744662c8d01d612adc31.