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
after each action it should be redirected to the current url
Behrokh Satarnejadac2bdce3f407
diff --git a/app/controllers/custom_styles_controller.rb b/app/controllers/custom_styles_controller.rbindex 62ac5f211f5..23c3077585b 100644--- a/app/controllers/custom_styles_controller.rb+++ b/app/controllers/custom_styles_controller.rb@@ -67,7 +67,7 @@ class CustomStylesController < ApplicationControllerdef create@custom_style = CustomStyle.create(custom_style_params)if @custom_style.valid?- redirect_to custom_style_path+ redirect_back(fallback_location: root_path)elseflash[:error] = @custom_style.errors.full_messagesrender action: :show@@ -77,7 +77,7 @@ class CustomStylesController < ApplicationControllerdef update@custom_style = get_or_create_custom_styleif @custom_style.update(custom_style_params)- redirect_to custom_style_path+ redirect_back(fallback_location: root_path)elseflash[:error] = @custom_style.errors.full_messagesrender action: :show@@ -93,7 +93,7 @@ class CustomStylesController < ApplicationController@custom_style.export_cover_text_color = color@custom_style.saveend- redirect_to custom_style_path+ redirect_back(fallback_location: root_path)enddef logo_download@@ -117,7 +117,6 @@ class CustomStylesController < ApplicationControllerenddef logo_delete- #brandingfile_delete(:remove_logo)end@@ -130,17 +129,14 @@ class CustomStylesController < ApplicationControllerenddef favicon_delete- #brandingfile_delete(:remove_favicon)enddef touch_icon_delete- #brandingfile_delete(:remove_touch_icon)enddef update_colors- #interfacevariable_params = params[:design_colors].first::Design::UpdateDesignService@@ -165,7 +161,7 @@ class CustomStylesController < ApplicationControllerflash[:error] = call.messageend- redirect_to action: :show+ redirect_back(fallback_location: root_path)endprivate@@ -216,6 +212,6 @@ class CustomStylesController < ApplicationControllerend@custom_style.send(remove_method)- redirect_to custom_style_path+ redirect_back(fallback_location: root_path)endend