summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-07-20 16:38:38 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-07-20 16:38:38 +0200
commit30f375cf5f5b5ca1d708c6f9558308a1d57cbd71 (patch)
tree515faf1911f55af2aede9af4638eb624b48aefcd /app/models
parentf3d03af4215763d6c51c4b26702200ba679baded (diff)
downloadgitlab-ce-30f375cf5f5b5ca1d708c6f9558308a1d57cbd71.tar.gz
Don't show other actions of the same name
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index 21c0e128b98..58f25b20acf 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -97,7 +97,7 @@ module Ci
end
def other_actions
- pipeline.manual_actions.where.not(id: self)
+ pipeline.manual_actions.where.not(name: name)
end
def playable?