mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +01:00
Import user - Remove conditions on account_id, backends don't support search by it
This commit is contained in:
parent
533c9c0351
commit
0c9ef3811e
@ -204,7 +204,7 @@ class admin_import_users_csv implements importexport_iface_import_plugin {
|
||||
case 'create' :
|
||||
case 'update' :
|
||||
$command = new admin_cmd_edit_user(array(
|
||||
'account' => $_action=='create'?null:(int)$_data['account_lid'],
|
||||
'account' => $_action=='create'?null:(int)$_data['account_id'],
|
||||
'set' => $_data
|
||||
)+(array)$admin_cmd);
|
||||
|
||||
|
@ -59,8 +59,19 @@ class admin_wizard_import_users_csv extends importexport_wizard_basic_import_csv
|
||||
function wizard_step50(&$content, &$sel_options, &$readonlys, &$preserv)
|
||||
{
|
||||
$result = parent::wizard_step50($content, $sel_options, $readonlys, $preserv);
|
||||
$content['msg'] .= "\n*" ;
|
||||
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Edit conditions - remove account_id as condition option
|
||||
*/
|
||||
function wizard_step55(&$content, &$sel_options, &$readonlys, &$preserv)
|
||||
{
|
||||
$result = parent::wizard_step55($content, $sel_options, $readonlys, $preserv);
|
||||
|
||||
unset($sel_options['string']['account_id']);
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user