mirror of
https://github.com/redmine/redmine.git
synced 2025-12-15 21:10:27 +01:00
use "do end" instead of {} at IssueRelationsController
git-svn-id: http://svn.redmine.org/redmine/trunk@20314 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -58,16 +58,16 @@ class IssueRelationsController < ApplicationController
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to issue_path(@issue) }
|
||||
format.js {
|
||||
format.js do
|
||||
@relations = @issue.reload.relations.select {|r| r.other_issue(@issue) && r.other_issue(@issue).visible? }
|
||||
}
|
||||
format.api {
|
||||
end
|
||||
format.api do
|
||||
if saved
|
||||
render :action => 'show', :status => :created, :location => relation_url(@relation)
|
||||
else
|
||||
render_validation_errors(@relation)
|
||||
end
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user