Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14834215
D13733.id33181.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13733.id33181.diff
View Options
diff --git a/src/applications/fact/controller/PhabricatorFactChartController.php b/src/applications/fact/controller/PhabricatorFactChartController.php
--- a/src/applications/fact/controller/PhabricatorFactChartController.php
+++ b/src/applications/fact/controller/PhabricatorFactChartController.php
@@ -2,9 +2,8 @@
final class PhabricatorFactChartController extends PhabricatorFactController {
- public function processRequest() {
- $request = $this->getRequest();
- $user = $request->getUser();
+ public function handleRequest(AphrontRequest $request) {
+ $viewer = $request->getViewer();
$table = new PhabricatorFactRaw();
$conn_r = $table->establishConnection('r');
diff --git a/src/applications/fact/controller/PhabricatorFactHomeController.php b/src/applications/fact/controller/PhabricatorFactHomeController.php
--- a/src/applications/fact/controller/PhabricatorFactHomeController.php
+++ b/src/applications/fact/controller/PhabricatorFactHomeController.php
@@ -6,9 +6,8 @@
return true;
}
- public function processRequest() {
- $request = $this->getRequest();
- $user = $request->getUser();
+ public function handleRequest(AphrontRequest $request) {
+ $viewer = $request->getViewer();
if ($request->isFormPost()) {
$uri = new PhutilURI('/fact/chart/');
@@ -34,7 +33,7 @@
$spec = $specs[$fact->getFactType()];
$name = $spec->getName();
- $value = $spec->formatValueForDisplay($user, $fact->getValueX());
+ $value = $spec->formatValueForDisplay($viewer, $fact->getValueX());
$rows[] = array($name, $value);
}
@@ -73,7 +72,7 @@
private function buildChartForm() {
$request = $this->getRequest();
- $user = $request->getUser();
+ $viewer = $request->getUser();
$table = new PhabricatorFactRaw();
$conn_r = $table->establishConnection('r');
@@ -106,7 +105,7 @@
}
$form = id(new AphrontFormView())
- ->setUser($user)
+ ->setUser($viewer)
->appendChild(
id(new AphrontFormSelectControl())
->setLabel(pht('Y-Axis'))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 31, 2:33 PM (14 h, 19 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7078796
Default Alt Text
D13733.id33181.diff (2 KB)
Attached To
Mode
D13733: Update Facts for handleRequest
Attached
Detach File
Event Timeline
Log In to Comment