summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-28 07:59:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-28 07:59:54 +0000
commit86d8acb3446321a7d891b83bf73ecce27c20f849 (patch)
treea1fa5c9fe01eb795aa9528d1ac5663a48b85cc0d /app
parent552926772ad5426f620c733b04a997bdd793151a (diff)
downloadredmine-86d8acb3446321a7d891b83bf73ecce27c20f849.tar.gz
redmine-86d8acb3446321a7d891b83bf73ecce27c20f849.zip
Fixed "First argument in form cannot contain nil or be empty" error (#18275).
git-svn-id: http://svn.redmine.org/redmine/trunk@13661 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/repositories/_related_issues.html.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/repositories/_related_issues.html.erb b/app/views/repositories/_related_issues.html.erb
index 9d3074112..649cc70e8 100644
--- a/app/views/repositories/_related_issues.html.erb
+++ b/app/views/repositories/_related_issues.html.erb
@@ -24,12 +24,12 @@
</ul>
<% if manage_allowed %>
- <%= form_for(@issue, :as => :issue, :remote => true,
- :url => {:controller => 'repositories', :action => 'add_related_issue',
+ <%= form_tag({:controller => 'repositories', :action => 'add_related_issue',
:id => @project, :repository_id => @repository.identifier_param,
:rev => @changeset.identifier},
+ :remote => true,
:method => :post,
- :html => {:id => 'new-relation-form', :style => (@issue ? '' : 'display: none;')}) do |f| %>
+ :id => 'new-relation-form', :style => (@issue ? '' : 'display: none;')) do |f| %>
<%= l(:label_issue) %> #<%= text_field_tag 'issue_id', '', :size => 10 %>
<%= submit_tag l(:button_add) %>
<%= toggle_link l(:button_cancel), 'new-relation-form'%>