Fix map settings redirection

This commit is contained in:
Senén Rodero Rodríguez
2023-11-27 14:22:15 +01:00
committed by Javi Martín
parent cb91a7421d
commit 91c3bde36b
5 changed files with 19 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ class Admin::SettingsController < Admin::BaseController
Setting["map.latitude"] = params[:latitude].to_f
Setting["map.longitude"] = params[:longitude].to_f
Setting["map.zoom"] = params[:zoom].to_i
redirect_to admin_settings_path, notice: t("admin.settings.index.map.flash.update")
redirect_to request_referer, notice: t("admin.settings.index.map.flash.update")
end
def update_content_types