fixed app crash on new issue via get
This commit is contained in:
parent
3250a024ef
commit
ac7bb20682
1 changed files with 0 additions and 4 deletions
|
@ -1,9 +1,5 @@
|
||||||
%div.issue-form-holder
|
%div.issue-form-holder
|
||||||
%h3= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.id}"
|
%h3= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.id}"
|
||||||
- unless request.xhr?
|
|
||||||
.back_link
|
|
||||||
= link_to project_issue_path(@project, @issue) do
|
|
||||||
← back to show page
|
|
||||||
= form_for [@project, @issue], :remote => request.xhr? do |f|
|
= form_for [@project, @issue], :remote => request.xhr? do |f|
|
||||||
-if @issue.errors.any?
|
-if @issue.errors.any?
|
||||||
.alert-message.block-message.error
|
.alert-message.block-message.error
|
||||||
|
|
Loading…
Reference in a new issue