diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-27 22:28:57 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-27 22:28:57 +0200 |
| commit | 3979c086ac08edc1d888bca44183b5feed1a3282 (patch) | |
| tree | ea2608595e69db6bb2bbeb29fb807c635b70ec12 /app | |
| parent | 49c73f79e5b4adca832e82f30c606ad7b730040c (diff) | |
Fix locale dependent param compare
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/page_translations_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/page_translations_controller.rb b/app/controllers/page_translations_controller.rb index 88726be6..b8673056 100644 --- a/app/controllers/page_translations_controller.rb +++ b/app/controllers/page_translations_controller.rb | |||
| @@ -27,7 +27,7 @@ class PageTranslationsController < ApplicationController | |||
| 27 | @node.save_draft!(current_user) | 27 | @node.save_draft!(current_user) |
| 28 | flash[:notice] = t("flash.page_translations.saved", :lang => @locale.upcase) | 28 | flash[:notice] = t("flash.page_translations.saved", :lang => @locale.upcase) |
| 29 | 29 | ||
| 30 | if params[:commit] == "Save + Unlock + Exit" | 30 | if params[:unlock_exit].present? |
| 31 | @node.unlock! | 31 | @node.unlock! |
| 32 | redirect_to node_path(@node) | 32 | redirect_to node_path(@node) |
| 33 | else | 33 | else |
