Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15338180
D16466.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
D16466.diff
View Options
diff --git a/src/applications/project/conduit/ProjectCreateConduitAPIMethod.php b/src/applications/project/conduit/ProjectCreateConduitAPIMethod.php
--- a/src/applications/project/conduit/ProjectCreateConduitAPIMethod.php
+++ b/src/applications/project/conduit/ProjectCreateConduitAPIMethod.php
@@ -58,15 +58,17 @@
->setNewValue($request->getValue('tags'));
}
- $xactions[] = id(new PhabricatorProjectTransaction())
- ->setTransactionType(PhabricatorTransactions::TYPE_EDGE)
- ->setMetadataValue(
- 'edge:type',
- PhabricatorProjectProjectHasMemberEdgeType::EDGECONST)
- ->setNewValue(
- array(
- '+' => array_fuse($members),
- ));
+ if ($members) {
+ $xactions[] = id(new PhabricatorProjectTransaction())
+ ->setTransactionType(PhabricatorTransactions::TYPE_EDGE)
+ ->setMetadataValue(
+ 'edge:type',
+ PhabricatorProjectProjectHasMemberEdgeType::EDGECONST)
+ ->setNewValue(
+ array(
+ '+' => array_fuse($members),
+ ));
+ }
$editor = id(new PhabricatorProjectTransactionEditor())
->setActor($user)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 10, 9:43 AM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7424762
Default Alt Text
D16466.diff (1 KB)
Attached To
Mode
D16466: conduit: check if members is initialized before creating new project
Attached
Detach File
Event Timeline
Log In to Comment