diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-17 23:54:52 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-18 21:54:00 +0200 |
commit | a19a0b431c05d7e17aca61f2e04abfe6fb5ac5b2 (patch) | |
tree | 26236a44d18c363298ce678ebb9c3200b0ab5bc6 | |
parent | dfa32123e3c655352481a9b00ecb0f11ea631c0a (diff) | |
download | gitlab-ce-fix-ci-link-on-project-page.tar.gz |
Fix 500 when showing project page and there's no CI project presentfix-ci-link-on-project-page
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 6e2f9645661..1a5c1c978c9 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -428,7 +428,7 @@ class Project < ActiveRecord::Base end def gitlab_ci? - gitlab_ci_service && gitlab_ci_service.active + gitlab_ci_service && gitlab_ci_service.active && gitlab_ci_project.present? end def ci_services |