Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15391717
D21361.id50845.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
D21361.id50845.diff
View Options
diff --git a/src/applications/search/controller/PhabricatorApplicationSearchController.php b/src/applications/search/controller/PhabricatorApplicationSearchController.php
--- a/src/applications/search/controller/PhabricatorApplicationSearchController.php
+++ b/src/applications/search/controller/PhabricatorApplicationSearchController.php
@@ -964,8 +964,14 @@
private function readExportFormatPreference() {
$viewer = $this->getViewer();
- $export_key = PhabricatorPolicyFavoritesSetting::SETTINGKEY;
- return $viewer->getUserSetting($export_key);
+ $export_key = PhabricatorExportFormatSetting::SETTINGKEY;
+ $value = $viewer->getUserSetting($export_key);
+
+ if (is_string($value)) {
+ return $value;
+ }
+
+ return '';
}
private function writeExportFormatPreference($value) {
@@ -976,7 +982,7 @@
return;
}
- $export_key = PhabricatorPolicyFavoritesSetting::SETTINGKEY;
+ $export_key = PhabricatorExportFormatSetting::SETTINGKEY;
$preferences = PhabricatorUserPreferences::loadUserPreferences($viewer);
$editor = id(new PhabricatorUserPreferencesEditor())
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 11:18 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7706922
Default Alt Text
D21361.id50845.diff (1 KB)
Attached To
Mode
D21361: Fix an issue where "Export Data" could fail if a user had a nonempty custom policy preference
Attached
Detach File
Event Timeline
Log In to Comment