diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 4267d2b8b..f0dbafc6b 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -5,7 +5,7 @@ class UsersController < ApplicationController before_action :load_user, only: [:show, :homepage_info, :sync_token, :sync_gitea_pwd, :projects, :watch_users, :fan_users, :hovercard, :hovercard4proj] before_action :check_user_exist, only: [:show, :homepage_info,:projects, :watch_users, :fan_users, :hovercard, :hovercard4proj] before_action :require_login, only: %i[me sync_user_info] - before_action :connect_to_ci_db, only: [:get_user_info] + # before_action :connect_to_ci_db, only: [:get_user_info] before_action :convert_image!, only: [:update, :update_image] skip_before_action :check_sign, only: [:attachment_show] before_action :sso_login, only: [:get_user_info] diff --git a/app/views/admins/organizations/shared/_project_list.html.erb b/app/views/admins/organizations/shared/_project_list.html.erb index e828938ff..249164e63 100644 --- a/app/views/admins/organizations/shared/_project_list.html.erb +++ b/app/views/admins/organizations/shared/_project_list.html.erb @@ -27,7 +27,7 @@ <%= project.is_public ? '√' : '' %> <%= project.recommend ? '√' : '' %> - <%= project.issues.size %> + <%= project.issues.issue_issue.size %> <%= project.attachments.size %> <%= project&.pull_requests_count %> <%= project.versions.size %> diff --git a/app/views/admins/projects/shared/_list.html.erb b/app/views/admins/projects/shared/_list.html.erb index 4c9485e80..16c3545c4 100644 --- a/app/views/admins/projects/shared/_list.html.erb +++ b/app/views/admins/projects/shared/_list.html.erb @@ -28,7 +28,7 @@ <%= project.is_public ? '√' : '' %> <%= project.recommend ? '√' : '' %> - <%= project.issues.size %> + <%= project.issues.issue_issue.size %> <%= project.attachments.size %> <%= project&.pull_requests_count %> <%= project.versions.size %>