From 3edd18c101707f8e705d27d05e3bf1a53b4f1f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Wed, 24 Oct 2007 10:46:20 +0200 Subject: [PATCH] bug: Prevent ids getting lost during form processing --- include/bugs.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/bugs.php b/include/bugs.php index 79db0d2..2a1c383 100644 --- a/include/bugs.php +++ b/include/bugs.php @@ -498,8 +498,10 @@ class Bug function getOutputEditorValues($aClean) { - $this->iBug_id = $aClean['iBuglinkId']; - $this->iVersionId = $aClean['iVersionId']; + $this->iBug_id = $aClean['iBuglinkId']; + + if($aClean['iVersionId']) + $this->iVersionId = $aClean['iVersionId']; } }