Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-06-27 20:04:02 +0300
committerClement Ho <ClemMakesApps@gmail.com>2017-06-27 22:15:40 +0300
commiteb0d4e2615718d5dfe1ec332b5b7ccdd88693fd1 (patch)
tree576f5f64216f255684eeeffd0f19e95273aeeda7 /app/models
parent76d94cadbe0c2750638977fba9a46927cc16e735 (diff)
Merge branch '34276-fix-dashboard-page-when-last-activity-at-is-nil' into 'master'
Fix application error when Project#last_activity_at is nil Closes #34276 See merge request !12443
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index e1ee22b1a82..4b289d15ae7 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -704,7 +704,7 @@ class Project < ActiveRecord::Base
end
def last_activity_date
- last_activity_at || updated_at
+ last_repository_updated_at || last_activity_at || updated_at
end
def project_id