$ch->beginChange($this, $req['reason']);
$this->_mtrack_change= $ch;
}
-
+ // used by gitlive close ticket...
+ if (!empty($req['status_name']) && empty($req['status'])) {
+ $n = DB_DataObject::Factory('core_enum');
+ $n->name = $req['status_name'];
+ $n->whereAddIn('etype', array('ticketstate','resolution'),'string');
+ if (!$n->find(true)) {
+ $roo->jerr("invalid status name");
+ }
+ $this->status = $n->id;
+
+ }
if ($old->status != $this->status) {
// status has been changed. - check to see if it's really a resolution.
$n = DB_DataObject::Factory('core_enum');
}
}
+
+
+
+
if (isset($req['_reorder'])) {
$old->updateSequence($req['_reorder']);
$roo->jok("UPDATED");