diff --git a/app/models/honor.rb b/app/models/honor.rb index e2bc585..ba14fbc 100644 --- a/app/models/honor.rb +++ b/app/models/honor.rb @@ -67,8 +67,8 @@ class Honor fields_to_remove << t if (datas.where(t.to_sym.ne => nil).count == 0 rescue false) end pd_title << { - "plugin_data_title" => I18n.t("personal_honor.#{t}") - } if !fields_to_remove.include?(t) + "plugin_data_title" => I18n.t("personal_honor.#{t}") + } if !fields_to_remove.include?(t) end fields_to_show = fields_to_show - fields_to_remove