Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1051651
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
Fri, Jul 4, 2:35 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Sat, Jul 5, 2:35 AM (6 h, 2 m)
Engine
blob
Format
Raw Data
Handle
679342
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