summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-09-07 16:18:15 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-09-08 11:52:20 +0300
commit035a38f18ea7bec1afd64218866a2fd986449b00 (patch)
tree07440ab8cd17ff107e2ba07d8077bc42ee3bbe70 /app
parentaf9dc9736eadb3ab31c97219fb73a5e9136b0ad0 (diff)
downloadgitlab-ce-035a38f18ea7bec1afd64218866a2fd986449b00.tar.gz
Fix issuable_bulk_update_path and merge request spinach test
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/helpers/issuables_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index 70ff7f9c1b2..3f5af880646 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -113,10 +113,10 @@ module IssuablesHelper
end
def issuable_bulk_update_path(type)
- if type == "issue"
- bulk_update_namespace_project_issues_path(@project.namespace, @project)
- else
+ if type == :merge_requests
bulk_update_namespace_project_merge_requests_path(@project.namespace, @project)
+ else
+ bulk_update_namespace_project_issues_path(@project.namespace, @project)
end
end
end