Module: appdb Branch: master Commit: 3edd18c101707f8e705d27d05e3bf1a53b4f1f2b URL: http://source.winehq.org/git/appdb.git/?a=commit;h=3edd18c101707f8e705d27d05...
Author: Alexander Nicolaysen Sørnes alex@thehandofagony.com Date: Wed Oct 24 10:46:20 2007 +0200
bug: Prevent ids getting lost during form processing
---
include/bugs.php | 6 ++++-- 1 files 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']; } }