mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-07 14:39:56 +01:00
fix for reported bug by stylite-> default Identity was not longer selectable in compose, when switched to user defined account
This commit is contained in:
parent
e851fc0b58
commit
fe212f2d95
@ -230,21 +230,38 @@
|
||||
|
||||
// replace the global defined identity
|
||||
if(is_a($accountData['identity'],'ea_identity')) {
|
||||
//_debug_array($profileData);
|
||||
$rememberIdentities = $profileData->identities;
|
||||
$profileData->setIdentity($accountData['identity'],0);
|
||||
$rememberID = $accountData['identity']->id;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($profileData->userDefinedIdentities && $GLOBALS['egw_info']['user']['apps']['felamimail']) {
|
||||
if($profileData->userDefinedIdentities && $GLOBALS['egw_info']['user']['apps']['felamimail'])
|
||||
{
|
||||
$allUserIdentities = $this->getUserDefinedIdentities();
|
||||
if (is_array($allUserIdentities)) {
|
||||
if (is_array($allUserIdentities))
|
||||
{
|
||||
$i=count($allUserIdentities);
|
||||
$y=-1;
|
||||
foreach ($allUserIdentities as $tmpkey => $id)
|
||||
{
|
||||
if ($id->id != $rememberID) {
|
||||
if ($id->id != $rememberID)
|
||||
{
|
||||
$profileData->setIdentity($id,$i);
|
||||
$i++;
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach ($rememberIdentities as $adkey => $ident)
|
||||
{
|
||||
$profileData->setIdentity($ident,$i);
|
||||
$profileData->identities[$i]->default = false;
|
||||
$profileData->identities[$i]->id = $y;
|
||||
$i++;
|
||||
$y--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user