From a68a53661644c4ba5d76ef3f1b5c447cb7e329f4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 4 Jun 2001 14:13:32 +0000 Subject: [PATCH] getYears: offered range to select from has to include already selected year --- phpgwapi/inc/class.sbox.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpgwapi/inc/class.sbox.inc.php b/phpgwapi/inc/class.sbox.inc.php index 86b0a03e49..afaf6a1b1a 100644 --- a/phpgwapi/inc/class.sbox.inc.php +++ b/phpgwapi/inc/class.sbox.inc.php @@ -133,11 +133,13 @@ { $startYear = date('Y') - 2; } + if ($selected && $startYear > $selected) $startYear = $selected; if (!$endyear) { $endyear = date('Y') + 5; } + if ($selected && $endYear < $selected) $endYear = $selected; $out = '