From 6d74fb85faaa76669da68007ca9e8e06476244ee Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Mon, 21 Mar 2022 12:01:58 +0100 Subject: [PATCH] fix(form_language): do not submit form when adding a translation --- inc/form_language.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/form_language.class.php b/inc/form_language.class.php index 059f655c7..b12daf4b7 100644 --- a/inc/form_language.class.php +++ b/inc/form_language.class.php @@ -311,7 +311,7 @@ public function showTranslations($options = []) { . ' name="new_override"' . ' class="vsubmit"' . ' value=" ' . __('New translation', 'formcreator') . '"' - .' onclick="' . 'plugin_formcreator.newTranslation(' . $this->getID() . ')' + .' onclick="' . 'plugin_formcreator.newTranslation(' . $this->getID() . '); return false;' . '"> ' . __('New translation', 'formcreator') . ''; echo ''; echo '';