$status_id,$category_id,$percent_complete,&$assigned_arr,&$depend_arr,
$new_group_project_id,$duration=0,$parent_id=0) {
$has_changes = false; // if any of the values passed is different from
$status_id,$category_id,$percent_complete,&$assigned_arr,&$depend_arr,
$new_group_project_id,$duration=0,$parent_id=0) {
$has_changes = false; // if any of the values passed is different from
+
+ $arrChangedAndInNotice = array("details"=>"","summary"=>"",
+ "complete"=>"","status"=>"","subproject"=>""); /* includes only
+ entries that changed and will be sended by E-Mail (sendNotice()) */
+
$v = new Validator();
$v->check($summary, "summary");
$v->check($priority, "priority");
$v = new Validator();
$v->check($summary, "summary");
$v->check($priority, "priority");
$this->ProjectGroup =& $newProjectGroup;
$this->addHistory ('group_project_id',$group_project_id);
$has_changes = true;
$this->ProjectGroup =& $newProjectGroup;
$this->addHistory ('group_project_id',$group_project_id);
$has_changes = true;
if ($this->getStatusID() != $status_id) {
$this->addHistory ('status_id',$this->getStatusID());
$has_changes = true;
if ($this->getStatusID() != $status_id) {
$this->addHistory ('status_id',$this->getStatusID());
$has_changes = true;
if ($this->getSummary() != htmlspecialchars(stripslashes($summary))) {
$this->addHistory ('summary',addslashes($this->getSummary()));
$has_changes = true;
if ($this->getSummary() != htmlspecialchars(stripslashes($summary))) {
$this->addHistory ('summary',addslashes($this->getSummary()));
$has_changes = true;
}
if ($this->getPercentComplete() != $percent_complete) {
$this->addHistory ('percent_complete',$this->getPercentComplete());
$has_changes = true;
}
if ($this->getPercentComplete() != $percent_complete) {
$this->addHistory ('percent_complete',$this->getPercentComplete());
$has_changes = true;
- "\n\nProject: ". $this->ProjectGroup->Group->getPublicName() .
- "\nSubproject: ". $this->ProjectGroup->getName() .
- "\nSummary: ".util_unconvert_htmlspecialchars( $this->getSummary() ).
- "\nComplete: ". $this->getPercentComplete() ."%".
- "\nStatus: ". $this->getStatusName() .
+ "\n\nProject: ". $this->ProjectGroup->Group->getPublicName()
+ ."\n". $arrChangedAndInNotice['subproject']."Subproject: ". $this->ProjectGroup->getName()
+ ."\n". $arrChangedAndInNotice['summary']. "Summary: ".util_unconvert_htmlspecialchars( $this->getSummary() )
+ ."\n". $arrChangedAndInNotice['complete']. "Complete: ". $this->getPercentComplete() ."%"
+ ."\n". $arrChangedAndInNotice['status']. "Status: ". $this->getStatusName() .
if ($result2 && $rows > 0) {
$body .= "\n\nFollow-Ups:";
for ($i=0; $i<$rows;$i++) {
if ($result2 && $rows > 0) {
$body .= "\n\nFollow-Ups:";
for ($i=0; $i<$rows;$i++) {
$body .= "\n\n-------------------------------------------------------";
$body .= "\nDate: ". date(_('Y-m-d H:i'),db_result($result2,$i,'postdate'));
$body .= "\nBy: ".db_result($result2,$i,'user_name');
$body .= "\n\n-------------------------------------------------------";
$body .= "\nDate: ". date(_('Y-m-d H:i'),db_result($result2,$i,'postdate'));
$body .= "\nBy: ".db_result($result2,$i,'user_name');
$body .= "\n\n-------------------------------------------------------".
"\nFor more info, visit:".
"\n\n".util_make_url ('/pm/task.php?func=detailtask&project_task_id='.$this->getID().
$body .= "\n\n-------------------------------------------------------".
"\nFor more info, visit:".
"\n\n".util_make_url ('/pm/task.php?func=detailtask&project_task_id='.$this->getID().