Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15424057
D19304.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D19304.diff
View Options
diff --git a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
--- a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
+++ b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
@@ -276,10 +276,20 @@
// format to make it easier to debug typeahead output.
foreach ($sources as $key => $source) {
+ // See T13119. Exclude proxy datasources from the dropdown since they
+ // fatal if built like this without actually being configured with an
+ // underlying datasource. This is a bit hacky but this is just a
+ // debugging/development UI anyway.
+ if ($source instanceof PhabricatorTypeaheadProxyDatasource) {
+ unset($sources[$key]);
+ continue;
+ }
+
// This can happen with composite or generic sources.
if (!$source->getDatasourceApplicationClass()) {
continue;
}
+
if (!PhabricatorApplication::isClassInstalledForViewer(
$source->getDatasourceApplicationClass(),
$viewer)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 23, 8:01 PM (23 h, 33 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712819
Default Alt Text
D19304.diff (1 KB)
Attached To
Mode
D19304: Stop the debugging view for typeahead datasources from fataling
Attached
Detach File
Event Timeline
Log In to Comment