1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-24 15:52: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:
epriestley 2016-07-09 05:55:45 -07:00
parent 156f719645
commit 46ceba728f

View file

@ -78,11 +78,13 @@ 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.
if ($this->repository) {
$object->attachRepository($this->repository); $object->attachRepository($this->repository);
} }
}
$object->setURI($xaction->getNewValue()); $object->setURI($xaction->getNewValue());