Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Prevent boolean casting for move_on_success,failure folders

Oliver Günther6833ebea4047
diff --git a/lib/tasks/email.rake b/lib/tasks/email.rake
index 7b31fafe42d..8958aa4e3f3 100644
--- a/lib/tasks/email.rake
+++ b/lib/tasks/email.rake
@@ -145,8 +145,8 @@ namespace :redmine do
username: ENV.fetch('username', nil),
password: ENV.fetch('password', nil),
folder: ENV.fetch('folder', nil),
- move_on_success: ActiveRecord::Type::Boolean.new.cast(ENV.fetch('move_on_success', nil)),
- move_on_failure: ActiveRecord::Type::Boolean.new.cast(ENV.fetch('move_on_failure', nil))
+ move_on_success: ENV.fetch('move_on_success', nil),
+ move_on_failure: ENV.fetch('move_on_failure', nil)
}
Redmine::IMAP.check(imap_options, options_from_env)