created-by-me filter for issues inside project. Fixed global project.issues order

This commit is contained in:
Dmitriy Zaporozhets 2013-02-28 17:46:28 +02:00
parent 15b121d603
commit 115454f3ed
5 changed files with 14 additions and 5 deletions

View file

@ -45,7 +45,7 @@ class Project < ActiveRecord::Base
has_many :events, dependent: :destroy
has_many :merge_requests, dependent: :destroy
has_many :issues, dependent: :destroy, order: "state, created_at DESC"
has_many :issues, dependent: :destroy, order: "state DESC, created_at DESC"
has_many :milestones, dependent: :destroy
has_many :users_projects, dependent: :destroy
has_many :notes, dependent: :destroy