forked from Gitlink/forgeplus
Merge branch 'standalone_develop' into dev_osredm_server
This commit is contained in:
commit
a378f30d6d
|
@ -120,8 +120,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
|
||||
|
|
Loading…
Reference in New Issue