Skip to content

Commit

Permalink
Fix error when clicking on created Catalog Item in the list
Browse files Browse the repository at this point in the history
  • Loading branch information
hstastna committed Apr 24, 2019
1 parent 406e991 commit 507ee89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/catalog_controller.rb
Expand Up @@ -1860,7 +1860,7 @@ def open_parent_nodes(record)
parents = [:id => template_to_node_name(record)]
else
# Check for parent nodes missing from vandt tree and return them if any
parent_rec = ServiceTemplateCatalog.find(record.service_template_catalog_id)
parent_rec = ServiceTemplateCatalog.find_by(:id => record.service_template_catalog_id) # nil is a valid value
parents = if parent_rec.nil?
[parent_rec, :id => "-Unassigned"]
else
Expand Down

0 comments on commit 507ee89

Please sign in to comment.