From bb050bc04045e830ca1c63d2fceaad943a1c004a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Wed, 29 Jul 2009 17:33:41 +0200 Subject: [PATCH] note: Fix e-mail test when moving from version to app --- include/note.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/note.php b/include/note.php index 0161b73..5074bb9 100644 --- a/include/note.php +++ b/include/note.php @@ -121,17 +121,17 @@ class Note { $this->iVersionId, $this->iNoteId)) return false; - $sVersionBefore = Version::lookup_name($oNote->iVersionId); - if(!$this->iAppId) { + $sVersionBefore = Version::lookup_name($oNote->iVersionId); $sVersionAfter = Version::lookup_name($this->iVersionId); $sWhatChanged .= "Version was changed from ".$sVersionBefore." to ".$sVersionAfter.".\n\n"; } else { $oApp = new application($this->iAppId); $sNewApp = $oApp->sName; - $sWhatChanged .= "Moved from version $shVersionBefore to application $sNewApp"; + $sVersionBefore = version::fullName($oNote->iVersionId); + $sWhatChanged .= "Moved from version $sVersionBefore to application $sNewApp.\n\n"; } } if (($this->iAppId || $this->iVersionId) && $this->iAppId!=$oNote->iAppId)