Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1173395
D412.id1020.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Oct 1, 3:23 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Thu, Oct 2, 3:23 AM (20 h, 28 m)
Engine
blob
Format
Raw Data
Handle
760592
Attached To
D412: INP-1808 - Create "E-mail Log" records using corresponding unit
D412.id1020.diff
View Options
Index: core/kernel/utility/email_send.php
===================================================================
--- core/kernel/utility/email_send.php
+++ core/kernel/utility/email_send.php
@@ -2132,8 +2132,17 @@
$result = $this->$send_method($message_headers, $message_body);
if ( $result && $this->_logData ) {
- // add e-mail log record
- $this->Conn->doInsert($this->_logData, TABLE_PREFIX . 'EmailLog');
+ /** @var kDBItem $email_log */
+ $email_log = $this->Application->recallObject(
+ 'email-log',
+ null,
+ array('skip_autoload' => true)
+ );
+
+ $email_log->Clear();
+ $email_log->SetDBFieldsFromHash($this->_logData);
+ $email_log->UpdateFormattersSubFields();
+ $email_log->Create();
}
if ( $immediate_clear ) {
Index: core/units/logs/email_logs/email_logs_config.php
===================================================================
--- core/units/logs/email_logs/email_logs_config.php
+++ core/units/logs/email_logs/email_logs_config.php
@@ -90,7 +90,7 @@
'default' => NULL
),
'EventParams' => Array ('type' => 'string', 'default' => NULL),
- 'AccessKey' => Array ('type' => 'string', 'max_len' => 20, 'not_null' => 1, 'default' => ''),
+ 'AccessKey' => Array ('type' => 'string', 'max_len' => 32, 'not_null' => 1, 'default' => ''),
),
'Grids' => Array (
Event Timeline
Log In to Comment