Merge branch 'pre_trustie_server' into trustie_server

This commit is contained in:
yystopf 2025-07-24 16:12:08 +08:00
commit 8588d60641
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ class Issue < ApplicationRecord
}
scope :ordered_by_assigner, -> (sort_direction) {
order("CASE WHEN u.id IS NULL THEN 1 ELSE 0 END #{sort_direction}")
.order("COALESCE(u.nickname, u.login) DESC")
order("CASE WHEN u.id IS NULL THEN 1 ELSE 0 END ASC")
.order("COALESCE(u.nickname, u.login) #{sort_direction}")
}
after_create :incre_project_common, :incre_user_statistic, :incre_platform_statistic
before_save :check_pm_and_update_due_date