Skip to content

Commit 6d74fb8

Browse files
committed
fix(form_language): do not submit form when adding a translation
1 parent 97124c4 commit 6d74fb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/form_language.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public function showTranslations($options = []) {
311311
. ' name="new_override"'
312312
. ' class="vsubmit"'
313313
. ' value="<i class=\'fas fa-plus\'></i>&nbsp;' . __('New translation', 'formcreator') . '"'
314-
.' onclick="' . 'plugin_formcreator.newTranslation(' . $this->getID() . ')'
314+
.' onclick="' . 'plugin_formcreator.newTranslation(' . $this->getID() . '); return false;'
315315
. '"><i class=\'fas fa-plus\'></i>&nbsp;' . __('New translation', 'formcreator') . '</button>';
316316
echo '</span>';
317317
echo '<span class="plugin_formcreator_filter_translations">';

0 commit comments

Comments
 (0)