Commit ac7bb206 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

fixed app crash on new issue via get

parent 3250a024
%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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment