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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[39460] Don't show a flash message if errors are being shown
Oliver Günther6e18a3a2d96f
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rbindex 93e318cd7d2..3476af087f6 100644--- a/app/controllers/account_controller.rb+++ b/app/controllers/account_controller.rb@@ -81,7 +81,7 @@ class AccountController < ApplicationController@user = @token.userif request.post?call = ::Users::ChangePasswordService.new(current_user: @user, session: session).call(params)- call.apply_flash_message!(flash)+ call.apply_flash_message!(flash) if call.errors.empty?if call.success?@token.destroy