diff --git a/vendor/built_in_modules/ask/app/models/ask_question.rb b/vendor/built_in_modules/ask/app/models/ask_question.rb index 13a5f939..13989acc 100644 --- a/vendor/built_in_modules/ask/app/models/ask_question.rb +++ b/vendor/built_in_modules/ask/app/models/ask_question.rb @@ -3,7 +3,6 @@ class AskQuestion include Mongoid::Timestamps include OrbitCoreLib::ObjectDisable - field :department, type: String field :name, type: String field :identity, type: String field :email, type: String @@ -12,7 +11,7 @@ class AskQuestion field :title, type: String field :content, type: String - validates_presence_of :department, :name, :identity, :email, :title, :content + validates_presence_of :name, :identity, :email, :title, :content belongs_to :ask_category has_one :ask_reply, dependent: :destroy diff --git a/vendor/built_in_modules/ask/app/views/panel/ask/front_end/ask_questions/index.html.erb b/vendor/built_in_modules/ask/app/views/panel/ask/front_end/ask_questions/index.html.erb index b4952536..e38359fe 100644 --- a/vendor/built_in_modules/ask/app/views/panel/ask/front_end/ask_questions/index.html.erb +++ b/vendor/built_in_modules/ask/app/views/panel/ask/front_end/ask_questions/index.html.erb @@ -1,22 +1,6 @@