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 <rspeicher@gmail.com>2016-08-02 04:23:12 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-08-02 04:23:12 +0300
commit901d4d2ca54d173f9c6b1f39c7548ef7fc9e8cd7 (patch)
tree116b96a46f145beb3cbe79510b8c965135edd381 /app/helpers/issues_helper.rb
parenta70431f874112212cb44b7a104b2e32f440af941 (diff)
Remove `url_for_new_issue` helper
Now we link to the standard `IssuesController#new` action, and let it redirect if we're using an external tracker.
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r--app/helpers/issues_helper.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index 5061ccb93a4..2e82b44437b 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -13,22 +13,6 @@ module IssuesHelper
OpenStruct.new(id: 0, title: 'None (backlog)', name: 'Unassigned')
end
- def url_for_new_issue(project = @project, options = {})
- return '' if project.nil?
-
- url =
- if options[:only_path]
- project.issues_tracker.new_issue_path
- else
- project.issues_tracker.new_issue_url
- end
-
- # Ensure we return a valid URL to prevent possible XSS.
- URI.parse(url).to_s
- rescue URI::InvalidURIError
- ''
- end
-
def url_for_issue(issue_iid, project = @project, options = {})
return '' if project.nil?