summaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-04 08:52:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-04 08:52:51 +0000
commit1269e6c7d3f5e067f4a77d78b66a8149255dd00a (patch)
tree5d8ef9fe1b13e7a0c9ac22784e743c20688361e5 /app/controllers/application_controller.rb
parented18b3359b6d4fc4b9a8d81c310a6bf8d01ef9ce (diff)
downloadredmine-1269e6c7d3f5e067f4a77d78b66a8149255dd00a.tar.gz
redmine-1269e6c7d3f5e067f4a77d78b66a8149255dd00a.zip
Display the bulk edit form with error messages when some issues can not be saved (#13943).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11786 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 6bbc4d1fc..a3fbae5aa 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -555,21 +555,6 @@ class ApplicationController < ActionController::Base
flash[:warning] = l(:warning_attachments_not_saved, obj.unsaved_attachments.size) if obj.unsaved_attachments.present?
end
- # Sets the `flash` notice or error based the number of issues that did not save
- #
- # @param [Array, Issue] issues all of the saved and unsaved Issues
- # @param [Array, Integer] unsaved_issue_ids the issue ids that were not saved
- def set_flash_from_bulk_issue_save(issues, unsaved_issue_ids)
- if unsaved_issue_ids.empty?
- flash[:notice] = l(:notice_successful_update) unless issues.empty?
- else
- flash[:error] = l(:notice_failed_to_save_issues,
- :count => unsaved_issue_ids.size,
- :total => issues.size,
- :ids => '#' + unsaved_issue_ids.join(', #'))
- end
- end
-
# Rescues an invalid query statement. Just in case...
def query_statement_invalid(exception)
logger.error "Query::StatementInvalid: #{exception.message}" if logger