modified buildUploadAccounts()
This commit is contained in:
parent
bc73e501cc
commit
50c991fe48
|
@ -427,12 +427,17 @@ function buildUploadAccounts($scope, $data, $ids) {
|
||||||
for ($i = 0; $i < sizeof($data); $i++) $partialAccounts[$i]['objectClasses'] = array();
|
for ($i = 0; $i < sizeof($data); $i++) $partialAccounts[$i]['objectClasses'] = array();
|
||||||
for ($i = 0; $i < sizeof($ordered); $i++) {
|
for ($i = 0; $i < sizeof($ordered); $i++) {
|
||||||
$module = new $ordered[$i]($scope);
|
$module = new $ordered[$i]($scope);
|
||||||
$errors = $module->build_uploadAccounts($data, $ids, &$partialAccounts);
|
$errors = $module->build_uploadAccounts($data, $ids, $partialAccounts);
|
||||||
if (sizeof($errors) > 0) break;
|
if (sizeof($errors) > 0) {
|
||||||
|
$errors[] = array("ERROR", _("Upload was stopped after errors in $module module!"), "");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
print_r($partialAccounts);
|
if (sizeof($errors) > 0) {
|
||||||
print_r($errors);
|
for ($i = 0; $i < (($i < sizeof($errors)) || ($i > 49)); $i++) call_user_func_array("StatusMessage", $errors[$i]);
|
||||||
return $return;
|
return false;
|
||||||
|
}
|
||||||
|
else return $partialAccounts;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue