From f459f341b45fcc949d7def6ce97c81038b15d841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Fri, 7 Aug 2009 15:24:41 +0200 Subject: [PATCH] note: Prevent link creation for version notes --- include/note.php | 2 ++ 1 file changed, 2 insertions(+) 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(); } }