summaryrefslogtreecommitdiffstats
path: root/vendor/plugins
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-06 17:06:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-06 17:06:14 +0000
commit976a31e941e61542075866563e4c0740106c5d70 (patch)
treef9e9ef35a84f4f37f5db76de1db6f7442503abb8 /vendor/plugins
parent4a729036bf0a92b8da4481d1313512c5b885770a (diff)
downloadredmine-976a31e941e61542075866563e4c0740106c5d70.tar.gz
redmine-976a31e941e61542075866563e4c0740106c5d70.zip
Merged IssuesController change_status and add_note actions.
The 'Change status' specific form removed and now accessible from issue/show view with no additional request (click on 'Update' to show the form). The 'Change issue status' permission is removed. To change the status, the user just needs to have either 'Edit' or 'Add note' permissions and some workflow transitions allowed. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1043 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor/plugins')
-rw-r--r--vendor/plugins/gloc-1.1.0/lib/gloc-rails.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/plugins/gloc-1.1.0/lib/gloc-rails.rb b/vendor/plugins/gloc-1.1.0/lib/gloc-rails.rb
index 8f201bcb8..aa65991b0 100644
--- a/vendor/plugins/gloc-1.1.0/lib/gloc-rails.rb
+++ b/vendor/plugins/gloc-1.1.0/lib/gloc-rails.rb
@@ -155,6 +155,27 @@ module ActiveRecord #:nodoc:
# end
# end
+ class Errors
+ include GLoc
+
+ def full_messages
+ full_messages = []
+
+ @errors.each_key do |attr|
+ @errors[attr].each do |msg|
+ next if msg.nil?
+
+ if attr == "base"
+ full_messages << (msg.is_a?(Symbol) ? l(msg) : msg)
+ else
+ full_messages << @base.class.human_attribute_name(attr) + " " + (msg.is_a?(Symbol) ? l(msg) : msg)
+ end
+ end
+ end
+ full_messages
+ end
+ end
+
module Validations #:nodoc:
module ClassMethods
# The default Rails version of this function creates an error message and then