Admin: Avoid deprecated accounts->read() usage when importing

accounts->read() requires an ID
This commit is contained in:
nathan 2024-10-09 10:40:08 -06:00
parent f654b4ee00
commit 6bf85f7808
2 changed files with 11 additions and 3 deletions

View File

@ -37,11 +37,16 @@ class admin_egw_group_record implements importexport_iface_egw_record
public function __construct( $_identifier='' ) {
if(is_array($_identifier)) {
$this->identifier = $_identifier['account_id'];
} else {
}
else
{
$this->identifier = $_identifier;
}
if($this->identifier)
{
$this->set_record($GLOBALS['egw']->accounts->read($this->identifier));
}
}
/**
* magic method to set attributes of record

View File

@ -41,8 +41,11 @@ class admin_egw_user_record implements importexport_iface_egw_record
} else {
$this->identifier = $_identifier;
}
if($this->identifier)
{
$this->set_record($GLOBALS['egw']->accounts->read($this->identifier));
}
}
/**
* magic method to set attributes of record