## Preparations
In the `modules\in-news\units\articles\articles_event_handler.php` replace line `$resource_ids[] = $category_data['ResourceId'];` with:
$resource_ids[] = $category_data['ResourceId'];
$category = $this->Application->recallObject('c', null, array('skip_autoload' => true));
$category->SetDBField('l1_Name', 'Test_' . time());
$category->SetDBField('ParentId', $category_id);
$category->Create();
In the `core\units\mailing_lists\mailing_lists_config.php` add `PortalUserId` field to the `Default` grid:
'PortalUserId' => Array ('filter_block' => 'grid_like_filter', 'title' => 'la_col_FromUser'),
In the `core\units\spam_reports\spam_reports_config.php` add `ReportedById` field to the `Default` grid:
'ReportedById' => Array ('filter_block' => 'grid_like_filter', 'title' => 'la_col_FromUser'),
## Testing
# Go to {nav Website & Content > Structure & Data} section
# Select News category, edit it's Custom tab, input Source URL: some valid rss url.
# Confirm that new automatic articles appears with Author = system.
# Confirm that new categories with names "Test_{some number}" created under News category, and fot that "Test_" categories Created By = 'system';
# Go to {nav Logs & Reports > System Log} section
# Confirm that no SQL error happens
# Go to {nav User Management > Mailings} section
# Add some record
# Go to {nav Tools > Query Database} section
# Run SQL like `UPDATE inp_MailingLists SET PortalUserId = -3;`
# Confirm that `system` value is shown in the `From User` column of `Mailings` grid
# Go to {nav Tools > Query Database} section
# Run SQL like `INSERT INTO inp_SpamReports VALUES (DEFAULT, 'p', '1', 'Test', UNIX_TIMESTAMP(), '-3');
# Go to {nav Logs & Reports >SPAM Reports} section
# Confirm that `system` value is shown in the `From User` column