mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
scrutinizer on imports/import.php: action builddoc never existed on import
This commit is contained in:
parent
45c9e6064e
commit
4e1380f4eb
|
|
@ -198,15 +198,15 @@ if ($action=='downfield' || $action=='upfield')
|
|||
}
|
||||
}
|
||||
*/
|
||||
if ($action == 'builddoc') {
|
||||
// Build import file
|
||||
$result = $objimport->build_file($user, GETPOST('model', 'alpha'), $datatoimport, $array_match_file_to_database);
|
||||
if ($result < 0) {
|
||||
setEventMessages($objimport->error, $objimport->errors, 'errors');
|
||||
} else {
|
||||
setEventMessages($langs->trans("FileSuccessfullyBuilt"), null, 'mesgs');
|
||||
}
|
||||
}
|
||||
// if ($action == 'builddoc') {
|
||||
// // Build import file
|
||||
// $result = $objimport->build_file($user, GETPOST('model', 'alpha'), $datatoimport, $array_match_file_to_database);
|
||||
// if ($result < 0) {
|
||||
// setEventMessages($objimport->error, $objimport->errors, 'errors');
|
||||
// } else {
|
||||
// setEventMessages($langs->trans("FileSuccessfullyBuilt"), null, 'mesgs');
|
||||
// }
|
||||
// }
|
||||
|
||||
if ($action == 'deleteprof') {
|
||||
if (GETPOST("id", 'int')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user