Import user - Remove conditions on account_id, backends don't support search by it

This commit is contained in:
nathangray 2019-05-21 10:41:50 -06:00
parent 533c9c0351
commit 0c9ef3811e
2 changed files with 14 additions and 3 deletions

View File

@ -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);

View File

@ -59,7 +59,18 @@ 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;
}