mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 14:51:35 +01:00
fix for TRACKER BUG#2018 FROM account lost when saving draft reported by C.Brunet
This commit is contained in:
parent
6c707b9e05
commit
ba6320eb92
@ -840,6 +840,7 @@
|
||||
$this->sessionData['folder'] = $_formData['folder'];
|
||||
$this->sessionData['bcc'] = $_formData['bcc'];
|
||||
$this->sessionData['signatureID'] = $_formData['signatureID'];
|
||||
$this->sessionData['identity'] = $_formData['identity'];
|
||||
foreach((array)$this->sessionData['bcc'] as $address) {
|
||||
$address_array = imap_rfc822_parse_adrlist($address,'');
|
||||
foreach((array)$address_array as $addressObject) {
|
||||
|
@ -146,7 +146,6 @@
|
||||
// read the data from session
|
||||
// all values are empty for a new compose window
|
||||
$sessionData = $this->bocompose->getSessionData();
|
||||
|
||||
if (is_array($_REQUEST['preset']))
|
||||
{
|
||||
#_debug_array($_REQUEST);
|
||||
@ -203,6 +202,9 @@
|
||||
{
|
||||
$presetSig = (strtolower($_REQUEST['signature']) == 'no' ? -2 : -1);
|
||||
}
|
||||
if ($sessionData['isDraft'] && !empty($sessionData['signatureID'])) $presetSig = (int)$sessionData['signatureID'];
|
||||
$presetId = NULL;
|
||||
if ($sessionData['isDraft'] && !empty($sessionData['identity'])) $presetId = (int)$sessionData['identity'];
|
||||
$this->display_app_header();
|
||||
|
||||
$this->t->set_file(array("composeForm" => "composeForm.tpl"));
|
||||
@ -288,7 +290,7 @@
|
||||
$sessionData['signatureID'] = $singleIdentity->signature;
|
||||
}
|
||||
}
|
||||
$selectFrom = html::select('identity', $defaultIdentity, $identities, true, "style='width:100%;' onchange='changeIdentity(this);'");
|
||||
$selectFrom = html::select('identity', ($presetId ? $presetId : $defaultIdentity), $identities, true, "style='width:100%;' onchange='changeIdentity(this);'");
|
||||
$this->t->set_var('select_from', $selectFrom);
|
||||
|
||||
// navbar(, kind of)
|
||||
|
Loading…
Reference in New Issue
Block a user