Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1047006
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
Sun, Jun 29, 3:42 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Mon, Jun 30, 3:42 PM (2 h, 40 m)
Engine
blob
Format
Raw Data
Handle
676931
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