|
|
@ -201,10 +201,7 @@ class IssuesController < ApplicationController |
|
|
|
|
|
|
|
|
|
|
|
if @issue.save_issue_with_child_records(params, @time_entry) |
|
|
|
if @issue.save_issue_with_child_records(params, @time_entry) |
|
|
|
render_attachment_warning_if_needed(@issue) |
|
|
|
render_attachment_warning_if_needed(@issue) |
|
|
|
if !@issue.current_journal.new_record? |
|
|
|
flash[:notice] = l(:notice_successful_update) unless @issue.current_journal.new_record? |
|
|
|
# Only send notification if something was actually changed |
|
|
|
|
|
|
|
flash[:notice] = l(:notice_successful_update) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
respond_to do |format| |
|
|
|
respond_to do |format| |
|
|
|
format.html { redirect_back_or_default({:action => 'show', :id => @issue}) } |
|
|
|
format.html { redirect_back_or_default({:action => 'show', :id => @issue}) } |
|
|
@ -212,10 +209,7 @@ class IssuesController < ApplicationController |
|
|
|
end |
|
|
|
end |
|
|
|
else |
|
|
|
else |
|
|
|
render_attachment_warning_if_needed(@issue) |
|
|
|
render_attachment_warning_if_needed(@issue) |
|
|
|
if !@issue.current_journal.new_record? |
|
|
|
flash[:notice] = l(:notice_successful_update) unless @issue.current_journal.new_record? |
|
|
|
# Only send notification if something was actually changed |
|
|
|
|
|
|
|
flash[:notice] = l(:notice_successful_update) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
@journal = @issue.current_journal |
|
|
|
@journal = @issue.current_journal |
|
|
|
|
|
|
|
|
|
|
|
respond_to do |format| |
|
|
|
respond_to do |format| |
|
|
|