Differential D20406 Diff 48713 src/applications/dashboard/xaction/dashboard/PhabricatorDashboardLayoutTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/xaction/dashboard/PhabricatorDashboardLayoutTransaction.php
Show All 20 Lines | return pht( | ||||
$this->renderAuthor(), | $this->renderAuthor(), | ||||
$this->renderOldValue(), | $this->renderOldValue(), | ||||
$this->renderNewValue()); | $this->renderNewValue()); | ||||
} | } | ||||
public function validateTransactions($object, array $xactions) { | public function validateTransactions($object, array $xactions) { | ||||
$errors = array(); | $errors = array(); | ||||
$mode_map = PhabricatorDashboardLayoutConfig::getLayoutModeSelectOptions(); | $mode_map = PhabricatorDashboardLayoutMode::getLayoutModeMap(); | ||||
$old_value = $object->getRawLayoutMode(); | $old_value = $object->getRawLayoutMode(); | ||||
foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
$new_value = $xaction->getNewValue(); | $new_value = $xaction->getNewValue(); | ||||
if ($new_value === $old_value) { | if ($new_value === $old_value) { | ||||
continue; | continue; | ||||
} | } | ||||
Show All 18 Lines |