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') {
|
// 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')) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user