mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 09:42:41 +01:00
(stable) Fix an issue with creating new Repository URIs via the Web UI
Summary I broke this in D16237: that made the CLI workflow work, but we attach the repository earlier in the web workflow and won't have one when we arrive here. Test Plan: Created a new repository URI from the web UI. Auditors: chad
This commit is contained in:
parent
156f719645
commit
46ceba728f
1 changed files with 6 additions and 4 deletions
|
@ -78,10 +78,12 @@ final class DiffusionURIEditor
|
||||||
} else {
|
} else {
|
||||||
$old_uri = null;
|
$old_uri = null;
|
||||||
|
|
||||||
// When creating a URI, we may not have processed the repository
|
// When creating a URI via the API, we may not have processed the
|
||||||
// transaction yet. Attach the repository here to make sure we
|
// repository transaction yet. Attach the repository here to make
|
||||||
// have it for the calls below.
|
// sure we have it for the calls below.
|
||||||
$object->attachRepository($this->repository);
|
if ($this->repository) {
|
||||||
|
$object->attachRepository($this->repository);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$object->setURI($xaction->getNewValue());
|
$object->setURI($xaction->getNewValue());
|
||||||
|
|
Loading…
Reference in a new issue