mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 22:39:00 +01:00
if a profile has no signature assigned, return the defaultSig on setComposeSignature
This commit is contained in:
parent
b5ed1b7eb9
commit
1740140e0b
@ -1064,9 +1064,18 @@ class ajaxfelamimail
|
|||||||
$preferences =& $boPreferences->getPreferences();
|
$preferences =& $boPreferences->getPreferences();
|
||||||
$Identities = $preferences->getIdentity($identity);
|
$Identities = $preferences->getIdentity($identity);
|
||||||
//error_log(print_r($Identities->signature,true));
|
//error_log(print_r($Identities->signature,true));
|
||||||
|
|
||||||
$response = new xajaxResponse();
|
$response = new xajaxResponse();
|
||||||
$response->addScript('setSignature('.$Identities->signature.');');
|
if ($Identities->signature)
|
||||||
|
{
|
||||||
|
$response->addScript('setSignature('.$Identities->signature.');');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$bosignatures = CreateObject('felamimail.felamimail_bosignatures');
|
||||||
|
$defaultSig = $bosignatures->getDefaultSignature();
|
||||||
|
if ($defaultSig === false) $defaultSig = -1;
|
||||||
|
$response->addScript('setSignature('.$defaultSig.');');
|
||||||
|
}
|
||||||
|
|
||||||
return $response->getXML();
|
return $response->getXML();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user