diff --git a/app/assets/javascripts/app/views/generic/table.jst.eco b/app/assets/javascripts/app/views/generic/table.jst.eco index dc39eddea..833aef43a 100644 --- a/app/assets/javascripts/app/views/generic/table.jst.eco +++ b/app/assets/javascripts/app/views/generic/table.jst.eco @@ -23,22 +23,23 @@ <% end %> <% for row in @overview: %> - <% displayName = '' %> <% if typeof object[row.name] is 'object': %> <% displayName = object[row.name].displayNameLong() %> <% else: %> <% displayName = object[row.name] %> <% end %> <% if row.translate: %><% displayName = T(displayName) %><% end %> - <% displayNameTitle = displayName %> - <% if row.title && object[row.title]: %> - <% if typeof object[row.title] is 'object': %> - <% displayNameTitle = object[row.title].displayNameLong() %> - <% else: %> - <% displayNameTitle = object[row.title] %> + <% if row.title: %> + <% displayNameTitle = displayName %> + <% if object[row.title]: %> + <% if typeof object[row.title] is 'object': %> + <% displayNameTitle = object[row.title].displayNameLong() %> + <% else: %> + <% displayNameTitle = object[row.title] %> + <% end %> <% end %> <% end %> -