Differential D19599 Diff 46859 src/applications/maniphest/xaction/ManiphestTaskPriorityTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/xaction/ManiphestTaskPriorityTransaction.php
| Show First 20 Lines • Show All 166 Lines • ▼ Show 20 Lines | foreach ($xactions as $xaction) { | ||||
| $value, | $value, | ||||
| implode(', ', $keyword_list)), | implode(', ', $keyword_list)), | ||||
| $xaction); | $xaction); | ||||
| } | } | ||||
| return $errors; | return $errors; | ||||
| } | } | ||||
| public function getTransactionTypeForConduit($xaction) { | |||||
| return 'priority'; | |||||
| } | |||||
| public function getFieldValuesForConduit($xaction, $data) { | |||||
| $old = $xaction->getOldValue(); | |||||
| if ($old !== null) { | |||||
| $old = (int)$old; | |||||
| $old_name = ManiphestTaskPriority::getTaskPriorityName($old); | |||||
| } else { | |||||
| $old_name = null; | |||||
| } | |||||
| $new = $xaction->getNewValue(); | |||||
| $new = (int)$new; | |||||
| $new_name = ManiphestTaskPriority::getTaskPriorityName($new); | |||||
| return array( | |||||
| 'old' => array( | |||||
| 'value' => $old, | |||||
| 'name' => $old_name, | |||||
| ), | |||||
| 'new' => array( | |||||
| 'value' => $new, | |||||
| 'name' => $new_name, | |||||
| ), | |||||
| ); | |||||
| } | |||||
| } | } | ||||