Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1169928
D170.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
Fri, Sep 26, 11:59 PM
Size
893 B
Mime Type
text/x-diff
Expires
Sat, Sep 27, 11:59 PM (20 h, 1 m)
Engine
blob
Format
Raw Data
Handle
758052
Attached To
D170: INP-1518 - Remove excessive owner detection code from "cacheItemOwner" method
D170.diff
View Options
Index: branches/5.3.x/core/kernel/db/cat_event_handler.php
===================================================================
--- branches/5.3.x/core/kernel/db/cat_event_handler.php
+++ branches/5.3.x/core/kernel/db/cat_event_handler.php
@@ -2205,21 +2205,6 @@
/* @var $object kDBItem */
$object->SetDBField($cached_field, $object->GetField($id_field));
- $options = $object->GetFieldOptions($id_field);
-
- if ( isset($options['options'][$user_id]) ) {
- $object->SetDBField($cached_field, $options['options'][$user_id]);
- }
- else {
- $user_config = $this->Application->getUnitConfig('u');
- $id_field = $user_config->getIDField();
- $table_name = $user_config->getTableName();
-
- $sql = 'SELECT Username
- FROM ' . $table_name . '
- WHERE ' . $id_field . ' = ' . $user_id;
- $object->SetDBField($cached_field, $this->Conn->GetOne($sql));
- }
}
/**
Event Timeline
Log In to Comment