Page MenuHomePhorge

D25453.1734731591.diff
No OneTemporary

D25453.1734731591.diff

diff --git a/src/applications/project/editor/PhabricatorProjectTransactionEditor.php b/src/applications/project/editor/PhabricatorProjectTransactionEditor.php
--- a/src/applications/project/editor/PhabricatorProjectTransactionEditor.php
+++ b/src/applications/project/editor/PhabricatorProjectTransactionEditor.php
@@ -295,6 +295,12 @@
}
public function removeSlugs(PhabricatorProject $project, array $slugs) {
+ // Do not allow removing the project's primary slug which the edit form
+ // may allow through a series of renames/moves. See T15636
+ if (($key = array_search($project->getPrimarySlug(), $slugs)) !== false) {
+ unset($slugs[$key]);
+ }
+
if (!$slugs) {
return;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 21:53 (14 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1021141
Default Alt Text
D25453.1734731591.diff (720 B)

Event Timeline