##// END OF EJS Templates
Always instanciate a relation....
Jean-Philippe Lang -
r11380:83d776199826
parent child
Show More
@@ -113,6 +113,8 class IssuesController < ApplicationController
113 113 @edit_allowed = User.current.allowed_to?(:edit_issues, @project)
114 114 @priorities = IssuePriority.active
115 115 @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project)
116 @relation = IssueRelation.new
117
116 118 respond_to do |format|
117 119 format.html {
118 120 retrieve_previous_and_next_issue_ids
@@ -4,3 +4,4 $('#relations').html('<%= escape_javascript(render :partial => 'issues/relations
4 4 $('#relation_issue_to_id').val('');
5 5 $('#relation_issue_to_id').focus();
6 6 <% end %>
7 $('#new-relation-form').show();
@@ -38,7 +38,7
38 38 :as => :relation, :remote => true,
39 39 :url => issue_relations_path(@issue),
40 40 :method => :post,
41 :html => {:id => 'new-relation-form', :style => (@relation ? '' : 'display: none;')}
41 :html => {:id => 'new-relation-form', :style => 'display: none;'}
42 42 } do |f| %>
43 43 <%= render :partial => 'issue_relations/form', :locals => {:f => f}%>
44 44 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now