Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/editor/PonderQuestionEditor.php
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | switch ($xaction->getTransactionType()) { | ||||
$rem = array_diff_key($old, $new); | $rem = array_diff_key($old, $new); | ||||
$count = $object->getAnswerCount(); | $count = $object->getAnswerCount(); | ||||
$count += count($add); | $count += count($add); | ||||
$count -= count($rem); | $count -= count($rem); | ||||
$object->setAnswerCount($count); | $object->setAnswerCount($count); | ||||
break; | break; | ||||
case PhabricatorTransactions::TYPE_EDGE: | |||||
return; | |||||
} | } | ||||
} | } | ||||
protected function applyCustomExternalTransaction( | protected function applyCustomExternalTransaction( | ||||
PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
PhabricatorApplicationTransaction $xaction) { | PhabricatorApplicationTransaction $xaction) { | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |