Skip to content

Commit

Permalink
Merge pull request #2876 from GregP/new_custom_template_message
Browse files Browse the repository at this point in the history
Display Name/Description in confirmation messages for PXE Custom Temp…
  • Loading branch information
h-kataria committed Dec 1, 2017
2 parents b594fe0 + 0b0472d commit 797eb75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -2212,7 +2212,7 @@ def visibility_box_edit

def get_record_display_name(record)
return record.label if record.respond_to?("label")
return record.description if record.respond_to?("description") && !record.description.nil?
return record.description if record.respond_to?("description") && record.description.present?
return record.ext_management_system.name if record.respond_to?("ems_id")
return record.title if record.respond_to?("title")
return record.name if record.respond_to?("name")
Expand Down

0 comments on commit 797eb75

Please sign in to comment.