diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 33193f300..581b9bb27 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -59,7 +59,7 @@ class IssuesController < ApplicationController sort_update(@query.sortable_columns) @query.sort_criteria = sort_criteria.to_a - @project_base_tag = (params[:project_id] || @issue.project)?'base_projects':'base'#by young + @project_base_tag = (params[:project_id] || @issue.project) ? 'base_projects':'base'#by young if @query.valid? case params[:format] @@ -125,7 +125,7 @@ class IssuesController < ApplicationController @priorities = IssuePriority.active @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project) - @project_base_tag = (params[:project_id] || @issue.project)?'base_projects':'base'#by young + @project_base_tag = (params[:project_id] || @issue.project) ? 'base_projects':'base'#by young #by huang # @change_flag = (@issue.author == User.current) || (User.current.admin?) diff --git a/app/views/issues/_attributes.html.erb b/app/views/issues/_attributes.html.erb index 838223977..6aef01e1d 100644 --- a/app/views/issues/_attributes.html.erb +++ b/app/views/issues/_attributes.html.erb @@ -2,7 +2,7 @@