Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1169917
D279.id1117.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:52 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Sat, Sep 27, 11:52 PM (17 h, 9 m)
Engine
blob
Format
Raw Data
Handle
758044
Attached To
D279: INP-1596 - Don't autoload object used in "OnSuggestValues" event
D279.id1117.diff
View Options
Index: branches/5.2.x/core/kernel/db/db_event_handler.php
===================================================================
--- branches/5.2.x/core/kernel/db/db_event_handler.php
+++ branches/5.2.x/core/kernel/db/db_event_handler.php
@@ -3393,7 +3393,7 @@
protected function getAutoCompleteSuggestions(kEvent $event, $term)
{
/** @var kDBItem $object */
- $object = $event->getObject();
+ $object = $event->getObject(array('skip_autoload' => true));
$field = $this->Application->GetVar('field');
Index: branches/5.2.x/core/units/configuration/configuration_event_handler.php
===================================================================
--- branches/5.2.x/core/units/configuration/configuration_event_handler.php
+++ branches/5.2.x/core/units/configuration/configuration_event_handler.php
@@ -520,7 +520,7 @@
protected function getAutoCompleteSuggestions(kEvent $event, $term)
{
/** @var kDBItem $object */
- $object = $event->getObject();
+ $object = $event->getObject(array('skip_autoload' => true));
$field = $this->Application->GetVar('field');
Event Timeline
Log In to Comment