$res = $this->ArtifactType->getTechnicians();
$arr =& util_result_column_to_array($res,0);
if (!in_array($assigned_to, $arr)) {
- $this->setError("Invalid assigned_to (not member of the project)");
+ $this->setError("Invalid assigned_to (assigned person is not a technician)");
return false;
}
}
$changes['status'] = 1;
$update = true;
- //
- // Enter the timestamp if we are changing to closed
- //
if ($status_id != 1) {
- $sqlu .= " close_date='".time()."', ";
+ $close_date = time () ;
} else {
- // Reset the close_date if bug is re-opened
- // (otherwise stat reports will be wrong).
- $sqlu .= " close_date='0', ";
+ $close_date = 0 ;
}
$this->addHistory('close_date', $this->getCloseDate());
}
$changes['assigned_to'] = 1;
$update = true;
}
- if ($summary && ($this->getSummary() != htmlspecialchars(stripslashes($summary)))) {
+ if ($summary && ($this->getSummary() != htmlspecialchars($summary))) {
$this->addHistory('summary', $this->getSummary());
$changes['summary'] = 1;
$update = true;
}
- if ($description && ($this->getDetails() != htmlspecialchars(stripslashes($description)))) {
+ if ($description && ($this->getDetails() != htmlspecialchars($description))) {
$this->addHistory('details', $this->getDetails());
$changes['details'] = 1;
$update = true;