Removed class 'small' for some buttons. Fixed issue creation
This commit is contained in:
parent
d246a68a24
commit
92137b7beb
7 changed files with 15 additions and 8 deletions
|
@ -60,7 +60,13 @@ class IssuesController < ApplicationController
|
|||
@issue.save
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to project_issue_path(@project, @issue) }
|
||||
format.html do
|
||||
if @issue.valid?
|
||||
redirect_to project_issue_path(@project, @issue)
|
||||
else
|
||||
render :new
|
||||
end
|
||||
end
|
||||
format.js
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue