Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15294457
D7888.id17847.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
739 B
Referenced Files
None
Subscribers
None
D7888.id17847.diff
View Options
Index: src/applications/project/editor/PhabricatorProjectEditor.php
===================================================================
--- src/applications/project/editor/PhabricatorProjectEditor.php
+++ src/applications/project/editor/PhabricatorProjectEditor.php
@@ -250,8 +250,8 @@
$old_slug = $project->getFullPhrictionSlug();
$project->setName($xaction->getNewValue());
$project->setPhrictionSlug($xaction->getNewValue());
-
- if ($xaction->getOldValue()) {
+ $changed_slug = $old_slug != $project->getFullPhrictionSlug();
+ if ($xaction->getOldValue() && $changed_slug) {
$old_document = id(new PhrictionDocument())
->loadOneWhere(
'slug = %s',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 6, 8:13 AM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7231852
Default Alt Text
D7888.id17847.diff (739 B)
Attached To
Mode
D7888: Phriction - fix a corner case on renaming a project
Attached
Detach File
Event Timeline
Log In to Comment