修改右键项目分数页面报500的BUG

This commit is contained in:
sw 2014-11-22 10:07:28 +08:00
parent 56150e44ce
commit 74f9bc6404
2 changed files with 5 additions and 2 deletions

View File

@ -842,7 +842,10 @@ class ProjectsController < ApplicationController
end
def show_projects_score
render :layout => false
respond_to do |format|
format.html { render :layout => "project_base"}
format.js
end
end
def issue_score_index

View File

@ -66,6 +66,6 @@
</ul>
</div>
<div id="show_score_detail">
<%= render :partial => 'projects/project_score_index', :locals => {:index => 0 } %>
<%= render :partial => 'projects/project_score_index', :locals => {:index => 0,:project => @project } %>
</div>
<% end %>