mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-06 11:58:30 +01:00
Make repository URI creation work regardless of "repository" transaction order
Summary: Fixes T11276. This feels slightly iffy (we `attachRepository()` here, and also when applying the TYPE_REPOSITORY transaction) but simpler than trying to reorder things. Test Plan: Created a repository URI with transactions in `["uri", "repository"]` order. Reviewers: chad, avivey Reviewed By: avivey Maniphest Tasks: T11276 Differential Revision: https://secure.phabricator.com/D16237
This commit is contained in:
parent
5ffdb73273
commit
921d56efb0
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ final class DiffusionURIEditor
|
||||||
$old_uri = $object->getEffectiveURI();
|
$old_uri = $object->getEffectiveURI();
|
||||||
} else {
|
} else {
|
||||||
$old_uri = null;
|
$old_uri = null;
|
||||||
|
|
||||||
|
// When creating a URI, we may not have processed the repository
|
||||||
|
// transaction yet. Attach the repository here to make sure we
|
||||||
|
// have it for the calls below.
|
||||||
|
$object->attachRepository($this->repository);
|
||||||
}
|
}
|
||||||
|
|
||||||
$object->setURI($xaction->getNewValue());
|
$object->setURI($xaction->getNewValue());
|
||||||
|
|
Loading…
Add table
Reference in a new issue