Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F726830
D279.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
Mon, Jan 6, 1:27 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Tue, Jan 7, 1:27 AM (2 d, 12 h ago)
Engine
blob
Format
Raw Data
Handle
536920
Attached To
D279: INP-1596 - Don't autoload object used in "OnSuggestValues" event
D279.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