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
add notifications to project queries create/update
Ivan Kuchin29fd0349ec33
diff --git a/app/controllers/projects/queries_controller.rb b/app/controllers/projects/queries_controller.rbindex ee7173a73af..2f09edc65c6 100644--- a/app/controllers/projects/queries_controller.rb+++ b/app/controllers/projects/queries_controller.rb@@ -50,8 +50,12 @@ class Projects::QueriesController < ApplicationController.call(permitted_query_params)if call.success?+ flash[:notice] = I18n.t("lists.create.success")+redirect_to projects_path(query_id: call.result.id)else+ flash[:error] = I18n.t("lists.create.failure", errors: call.errors.full_messages.join("\n"))+render template: "/projects/index",layout: "global",locals: { query: call.result, state: :edit }@@ -64,8 +68,12 @@ class Projects::QueriesController < ApplicationController.call(permitted_query_params)if call.success?+ flash[:notice] = I18n.t("lists.update.success")+redirect_to projects_path(query_id: call.result.id)else+ flash[:error] = I18n.t("lists.update.failure", errors: call.errors.full_messages.join("\n"))+render template: "/projects/index",layout: "global",locals: { query: call.result, state: :edit }diff --git a/config/locales/en.yml b/config/locales/en.ymlindex c12bb114124..6e87cb6cc31 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -339,6 +339,12 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}no_results_title_text: There is no additional recorded disk space consumed by this project.lists:+ create:+ success: "The list has been saved"+ failure: "The list cannot be saved: %{errors}"+ update:+ success: "The modified list has been saved"+ failure: "The modified list cannot be saved: %{errors}"can_be_saved: "List modified:"can_be_saved_as: "There are modifications but this view cannot be edited:"