微信issue指向BUG修改,issue@功能修改

This commit is contained in:
yuanke 2016-08-30 15:01:26 +08:00
parent e37a2fee1e
commit b9e9892257
2 changed files with 3 additions and 1 deletions

View File

@ -592,7 +592,7 @@ class IssuesController < ApplicationController
senduser = User.find(params[:issue][:assigned_to_id])
if senduser.id != User.current.id && @issue.assigned_to_id != params[:issue][:assigned_to_id]
if senduser.id != User.current.id && @issue.assigned_to_id != params[:issue][:assigned_to_id].to_i
issue_id = @issue.id
issue_title = params[:issue][:subject]
priority_id = params[:issue][:priority_id]

View File

@ -47,6 +47,8 @@ class AtMessage < ActiveRecord::Base
detail_content = strip_html at_message.notes,30
elsif defined? at_message.content
detail_content = strip_html at_message.content,30
elsif defined? at_message.description
detail_content = strip_html at_message.description,30
end
user = self.user