Page MenuHomePhorge

D25263.1737424825.diff
No OneTemporary

D25263.1737424825.diff

diff --git a/src/applications/differential/editor/DifferentialTransactionEditor.php b/src/applications/differential/editor/DifferentialTransactionEditor.php
--- a/src/applications/differential/editor/DifferentialTransactionEditor.php
+++ b/src/applications/differential/editor/DifferentialTransactionEditor.php
@@ -218,7 +218,8 @@
// No "$", to allow for branches like T123_demo.
$match = null;
- if (preg_match('/^T(\d+)/i', $branch, $match)) {
+ if (phutil_nonempty_string($branch) &&
+ (preg_match('/^T(\d+)/i', $branch, $match))) {
$task_id = $match[1];
$tasks = id(new ManiphestTaskQuery())
->setViewer($this->getActor())

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 21, 02:00 (1 d, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1120306
Default Alt Text
D25263.1737424825.diff (724 B)

Event Timeline