mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 15:38:27 +01:00
csv import of accounts: fix behavior for new accounts, after fix in rev.32585
This commit is contained in:
parent
43e1f8b60c
commit
e9e2312b06
@ -178,9 +178,10 @@ class admin_import_users_csv implements importexport_iface_import_plugin {
|
|||||||
case 'disable':
|
case 'disable':
|
||||||
case 'enable':
|
case 'enable':
|
||||||
$_data['account_expires'] = $_action == 'disable' ? 'already' : '';
|
$_data['account_expires'] = $_action == 'disable' ? 'already' : '';
|
||||||
case 'update' :
|
|
||||||
case 'create' :
|
case 'create' :
|
||||||
$command = new admin_cmd_edit_user($_data['account_lid'], $_data);
|
$newaccount=true;
|
||||||
|
case 'update' :
|
||||||
|
$command = new admin_cmd_edit_user(($newaccount?null:$_data['account_lid']), $_data);
|
||||||
if($this->dry_run) {
|
if($this->dry_run) {
|
||||||
$this->results[$_action]++;
|
$this->results[$_action]++;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user