diff --git a/app/models/topic.rb b/app/models/topic.rb index 0bd831473..94b0e53fd 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -19,7 +19,7 @@ class Topic < ApplicationRecord scope :with_single_type, ->(type){where(type: trans_simpletype_to_classtype(type))} scope :with_mutil_type, ->(type){where(type: group_class_type_names(type))} - self.inheritance_column = nil + # self.inheritance_column = nil def self.has_templates?(type) type_simple_name = Topic.type_simple_name(type) diff --git a/app/views/admins/topics/_form_modal_forums.html.erb b/app/views/admins/topics/_form_modal_forums.html.erb index 6f663246e..c444abd24 100644 --- a/app/views/admins/topics/_form_modal_forums.html.erb +++ b/app/views/admins/topics/_form_modal_forums.html.erb @@ -39,27 +39,7 @@ <%= p.number_field :order_index, class: "form-control", placeholder: "" %> -
- <% logo_img = @topic.image %> - <% if logo_img.present? %> -
- - <%= file_field_tag(:image, accept: 'image/png,image/jpg,image/jpeg', style: "opacity: 0", value: params[:image]) %> - -
- <% else %> -
- - <%= file_field_tag(:image, accept: 'image/png,image/jpg,image/jpeg', required: true, style: "opacity: 0", value: params[:image]) %> - -
- <% end %> -
-
logo*
-
格式:PNG、JPG
-
尺寸:高度38px以内,宽等比例缩放
-
-
+