diff --git a/app/views/projects/_development_group.html.erb b/app/views/projects/_development_group.html.erb
index ad8d9a35a..1ddd9acac 100644
--- a/app/views/projects/_development_group.html.erb
+++ b/app/views/projects/_development_group.html.erb
@@ -1,4 +1,5 @@
<% project_file_num = Attachment.where(:container_type => "Project", :container_id => @project.id).count %>
+<% project_issue_count =Issue.where(:project_id => @project.id).count%>
<%= link_to l(:label_activity), {:controller => 'projects', :action => 'show', :id => @project.id}, :class => "f14 c_blue02" %>
<% unless ForgeActivity.where("project_id = ?", @project.id).count == 0 %>
@@ -8,8 +9,8 @@
<% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %>
<%= link_to l(:label_issue_tracking), project_issues_path(@project, :remote => true), :class => "f14 c_blue02" %>
- <% if @project.project_score.issue_num > 0 %>
-
(<%= @project.project_score.issue_num %>)
+ <% if project_issue_count > 0 %>
+
(<%= project_issue_count %>)
<% end %>
<% if User.current.member_of?(@project) %>
diff --git a/app/views/users/_resources_list.html.erb b/app/views/users/_resources_list.html.erb
index 0190e60dc..3c78e3a0c 100644
--- a/app/views/users/_resources_list.html.erb
+++ b/app/views/users/_resources_list.html.erb
@@ -249,7 +249,7 @@
}
line.children().css("background-color", 'white');
id = line.children().last().html();
- user_id = line.children().eq(5).html();
+ user_id = line.children().eq(4).html();
if(user_id === '<%= User.current.id%>') {
if(line.children().first().children().data('hasHistory') == 'Y'){
alert('该资源存在历史版本,不能删除');
diff --git a/app/views/users/_user_resource_info.html.erb b/app/views/users/_user_resource_info.html.erb
index d3b169a17..d5a31bdf7 100644
--- a/app/views/users/_user_resource_info.html.erb
+++ b/app/views/users/_user_resource_info.html.erb
@@ -225,7 +225,7 @@
document.oncontextmenu = function() {return true;}
line.children().css("background-color",'white');
id = line.children().last().html();
- user_id = line.children().eq(5).html();
+ user_id = line.children().eq(4).html();
if(user_id === '<%= User.current.id %>') {
res_name = line.children().eq(1).children().attr('title');
res_link = line.children().eq(1).html();