mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +01:00
Transactions - fix bug adding people to projects
Summary: Fixes T8264. Broken in D12929. Sweep all the applyBuiltin implementations and always break; rather than return Test Plan: added myself to a project successfully (showed up as a member) Reviewers: epriestley, chad Subscribers: Korvin, epriestley Maniphest Tasks: T6403, T8264 Differential Revision: https://secure.phabricator.com/D12940
This commit is contained in:
parent
c896aeb62e
commit
2154f17b3d
3 changed files with 3 additions and 7 deletions
|
@ -200,7 +200,7 @@ final class PhabricatorAuditEditor
|
||||||
$state,
|
$state,
|
||||||
$phid);
|
$phid);
|
||||||
}
|
}
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::applyBuiltinExternalTransaction($object, $xaction);
|
return parent::applyBuiltinExternalTransaction($object, $xaction);
|
||||||
|
|
|
@ -609,7 +609,7 @@ final class DifferentialTransactionEditor
|
||||||
$state,
|
$state,
|
||||||
$phid);
|
$phid);
|
||||||
}
|
}
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::applyBuiltinExternalTransaction($object, $xaction);
|
return parent::applyBuiltinExternalTransaction($object, $xaction);
|
||||||
|
|
|
@ -163,11 +163,7 @@ final class PhabricatorProjectTransactionEditor
|
||||||
PhabricatorLiskDAO $object,
|
PhabricatorLiskDAO $object,
|
||||||
PhabricatorApplicationTransaction $xaction) {
|
PhabricatorApplicationTransaction $xaction) {
|
||||||
|
|
||||||
$old = $xaction->getOldValue();
|
|
||||||
$new = $xaction->getNewValue();
|
|
||||||
|
|
||||||
switch ($xaction->getTransactionType()) {
|
switch ($xaction->getTransactionType()) {
|
||||||
|
|
||||||
case PhabricatorTransactions::TYPE_EDGE:
|
case PhabricatorTransactions::TYPE_EDGE:
|
||||||
$edge_type = $xaction->getMetadataValue('edge:type');
|
$edge_type = $xaction->getMetadataValue('edge:type');
|
||||||
switch ($edge_type) {
|
switch ($edge_type) {
|
||||||
|
@ -220,7 +216,7 @@ final class PhabricatorProjectTransactionEditor
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::applyBuiltinExternalTransaction($object, $xaction);
|
return parent::applyBuiltinExternalTransaction($object, $xaction);
|
||||||
|
|
Loading…
Reference in a new issue