Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046670
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
Sun, Jun 29, 2:28 AM
Size
893 B
Mime Type
text/x-diff
Expires
Mon, Jun 30, 2:28 AM (2 h, 59 m)
Engine
blob
Format
Raw Data
Handle
676682
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