mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-21 11:09:02 +01:00
parent
dbac658025
commit
1f6b53be0e
1 changed files with 4 additions and 0 deletions
|
@ -275,6 +275,10 @@ final class PhabricatorProject extends PhabricatorProjectDAO
|
||||||
}
|
}
|
||||||
|
|
||||||
public function save() {
|
public function save() {
|
||||||
|
if (!$this->getMailKey()) {
|
||||||
|
$this->setMailKey(Filesystem::readRandomCharacters(20));
|
||||||
|
}
|
||||||
|
|
||||||
$this->openTransaction();
|
$this->openTransaction();
|
||||||
$result = parent::save();
|
$result = parent::save();
|
||||||
$this->updateDatasourceTokens();
|
$this->updateDatasourceTokens();
|
||||||
|
|
Loading…
Add table
Reference in a new issue