small fix

This commit is contained in:
rulingcom 2025-06-06 18:38:02 +08:00
parent 4e5882411b
commit f3efa7e4f9
1 changed files with 3 additions and 0 deletions

View File

@ -148,6 +148,7 @@ class UniversalTablesController < ApplicationController
rows = [] rows = []
entry.column_entries.each do |ce| entry.column_entries.each do |ce|
ct = ce.table_column ct = ce.table_column
next if ct.nil?
text = ce.get_frontend_text(ct) text = ce.get_frontend_text(ct)
rows << { rows << {
"title" => ct.title, "title" => ct.title,
@ -166,6 +167,8 @@ class UniversalTablesController < ApplicationController
rows = [] rows = []
e.column_entries.each do |ce| e.column_entries.each do |ce|
ct = ce.table_column ct = ce.table_column
next if ct.nil?
next if ct.display_in_index === false
text = ce.get_frontend_text(ct) text = ce.get_frontend_text(ct)
if ct.is_link_to_show if ct.is_link_to_show
text = "<a href='#{OrbitHelper.url_to_show(e.to_param)}'>#{text}</a>" text = "<a href='#{OrbitHelper.url_to_show(e.to_param)}'>#{text}</a>"