Page MenuHomePhorge

D25163.1734933871.diff
No OneTemporary

D25163.1734933871.diff

diff --git a/src/applications/project/state/PhabricatorWorkboardViewState.php b/src/applications/project/state/PhabricatorWorkboardViewState.php
--- a/src/applications/project/state/PhabricatorWorkboardViewState.php
+++ b/src/applications/project/state/PhabricatorWorkboardViewState.php
@@ -41,7 +41,7 @@
$this->requestState['filter'] = $request->getStr('filter');
}
- if (strlen($request->getURIData('queryKey'))) {
+ if (phutil_nonempty_string($request->getURIData('queryKey'))) {
$this->requestState['filter'] = $request->getURIData('queryKey');
}
@@ -169,7 +169,7 @@
public function getQueryKey() {
$request_query = idx($this->requestState, 'filter');
- if (strlen($request_query)) {
+ if (phutil_nonempty_string($request_query)) {
return $request_query;
}
@@ -203,7 +203,7 @@
$default_query = $project->getDefaultWorkboardFilter();
- if (strlen($default_query)) {
+ if (phutil_nonempty_string($default_query)) {
return $default_query;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 06:04 (14 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1026762
Default Alt Text
D25163.1734933871.diff (1 KB)

Event Timeline