diff --git a/include/note.php b/include/note.php index 0bd5164..2be3c7f 100644 --- a/include/note.php +++ b/include/note.php @@ -54,7 +54,8 @@ class Note { if(query_appdb("INSERT INTO appNotes $sFields VALUES $sValues", "Error while creating a new note.")) { $this->note(mysql_insert_id()); - $this->mailMaintainers("add"); + $sWhatChanged = "Description is:\n".$sDescription.".\n\n"; + $this->mailMaintainers("add", $sWhatChanged); return true; } else @@ -123,7 +124,7 @@ class Note { { case "add": $sSubject = "Note ".$this->sTitle." for ".lookup_app_name($this->iAppId)." ".lookup_version_name($this->iVersionId)." added by ".$_SESSION['current']->sRealname; - $sMsg = APPDB_ROOT."appview.php?versionId=".$this->iVersionId."\n"; + $sMsg .= APPDB_ROOT."appview.php?versionId=".$this->iVersionId."\n"; addmsg("The note was successfully added into the database.", "green"); break; case "edit": diff --git a/include/version.php b/include/version.php index 00b5508..4069323 100644 --- a/include/version.php +++ b/include/version.php @@ -162,7 +162,7 @@ class Version { $sUpdate = compile_update_string(array('versionName' => $sName)); if (!query_appdb("UPDATE appVersion SET ".$sUpdate." WHERE versionId = ".$this->iVersionId)) return false; - $sWhatChanged .= "Name was changed from ".$this->sName." to ".$sName.".\n\n"; + $sWhatChanged .= "Name was changed from:\n\t'".$this->sName."'\nto:\n\t'".$sName."'\n\n"; $this->sName = $sName; }