From f8dcc1daaf6fa789ec3a4e2b5b00eef3bcc467d2 Mon Sep 17 00:00:00 2001 From: John BOTELLA Date: Sat, 21 May 2022 00:36:13 +0200 Subject: [PATCH] Add form setup and backport as default setup builder --- htdocs/modulebuilder/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index 0bf2036ec33..44a69c1f5e8 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -249,7 +249,7 @@ if ($dirins && $action == 'initmodule' && $modulename) { $error++; $langs->load("errors"); setEventMessages($langs->trans("ErrorFailToCreateDir", $backportDest), null, 'errors'); - $tryToCopyFromSetupClass = true; + $tryToCopyFromSetupClass = false; } if ($tryToCopyFromSetupClass) { @@ -260,7 +260,7 @@ if ($dirins && $action == 'initmodule' && $modulename) { $langs->load("errors"); setEventMessages($langs->trans("ErrorFailToCopyFile", $backportFileSrc, $backportFileDest), null, 'errors'); } else { - setEventMessages($langs->trans("AllFilesDidAlreadyExist", $backportFileDest), null, 'warnings'); + setEventMessages($langs->trans("FileDidAlreadyExist", $backportFileDest), null, 'warnings'); } } }