Alexander Nicolaysen Sørnes : note: Prevent link creation for version notes
Alexander Nicolaysen Sørnes
asornes at winehq.org
Fri Aug 7 08:25:42 CDT 2009
Module: appdb
Branch: master
Commit: f459f341b45fcc949d7def6ce97c81038b15d841
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=f459f341b45fcc949d7def6ce97c81038b15d841
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Fri Aug 7 15:24:41 2009 +0200
note: Prevent link creation for version notes
---
include/note.php | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/note.php b/include/note.php
index ae4032d..b88727b 100644
--- a/include/note.php
+++ b/include/note.php
@@ -610,11 +610,13 @@ class Note {
{
$this->aNoteLinks = $this->getNoteLinksFromInput($aValues);
+ // There's no need to use links if the note is only shown for one version
if(sizeof($this->aNoteLinks) == 1)
{
$oLink = $this->aNoteLinks[0];
$this->iVersionId = $oLink->objectGetParent('version');
$this->iAppId = 0;
+ $this->aNoteLinks = array();
}
}
More information about the wine-cvs
mailing list