mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 05:12:41 +01:00
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
f790dd5235
commit
a5b26104f6
1 changed files with 6 additions and 4 deletions
|
@ -78,10 +78,12 @@ final class DiffusionURIEditor
|
|||
} else {
|
||||
$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);
|
||||
// When creating a URI via the API, we may not have processed the
|
||||
// repository transaction yet. Attach the repository here to make
|
||||
// sure we have it for the calls below.
|
||||
if ($this->repository) {
|
||||
$object->attachRepository($this->repository);
|
||||
}
|
||||
}
|
||||
|
||||
$object->setURI($xaction->getNewValue());
|
||||
|
|
Loading…
Reference in a new issue