scrutinizer on imports/import.php: action builddoc never existed on import

This commit is contained in:
Faustin 2022-09-12 16:19:25 +02:00
parent 45c9e6064e
commit 4e1380f4eb

View File

@ -198,15 +198,15 @@ if ($action=='downfield' || $action=='upfield')
} }
} }
*/ */
if ($action == 'builddoc') { // if ($action == 'builddoc') {
// Build import file // // Build import file
$result = $objimport->build_file($user, GETPOST('model', 'alpha'), $datatoimport, $array_match_file_to_database); // $result = $objimport->build_file($user, GETPOST('model', 'alpha'), $datatoimport, $array_match_file_to_database);
if ($result < 0) { // if ($result < 0) {
setEventMessages($objimport->error, $objimport->errors, 'errors'); // setEventMessages($objimport->error, $objimport->errors, 'errors');
} else { // } else {
setEventMessages($langs->trans("FileSuccessfullyBuilt"), null, 'mesgs'); // setEventMessages($langs->trans("FileSuccessfullyBuilt"), null, 'mesgs');
} // }
} // }
if ($action == 'deleteprof') { if ($action == 'deleteprof') {
if (GETPOST("id", 'int')) { if (GETPOST("id", 'int')) {