[Cs-project-svn_notify] SF.net SVN: cs-project: [648] trunk/lib/globalFunctions.php
Brought to you by:
crazedsanity
From: <cra...@us...> - 2007-11-21 15:55:06
|
Revision: 648 http://cs-project.svn.sourceforge.net/cs-project/?rev=648&view=rev Author: crazedsanity Date: 2007-11-21 07:55:00 -0800 (Wed, 21 Nov 2007) Log Message: ----------- Fix array_as_option_list() to check the display value against checkedValue too. /lib/globalFunctions.php: * array_as_option_list(): -- check $display against $checkedValue (instead of just $value). Modified Paths: -------------- trunk/lib/globalFunctions.php Modified: trunk/lib/globalFunctions.php =================================================================== --- trunk/lib/globalFunctions.php 2007-11-20 19:55:31 UTC (rev 647) +++ trunk/lib/globalFunctions.php 2007-11-21 15:55:00 UTC (rev 648) @@ -2,11 +2,11 @@ /* * SVN INFORMATION::: * ------------------ - * SVN Signature::::::: $Id$ - * Last Author::::::::: $Author$ - * Current Revision:::: $Revision$ - * Repository Location: $HeadURL$ - * Last Updated:::::::: $Date$ + * SVN Signature::::::: $Id:globalFunctions.php 626 2007-11-20 16:54:11Z crazedsanity $ + * Last Author::::::::: $Author:crazedsanity $ + * Current Revision:::: $Revision:626 $ + * Repository Location: $HeadURL:https://cs-project.svn.sourceforge.net/svnroot/cs-project/trunk/lib/globalFunctions.php $ + * Last Updated:::::::: $Date:2007-11-20 10:54:11 -0600 (Tue, 20 Nov 2007) $ */ @@ -462,7 +462,7 @@ foreach($data as $value=>$display) { //see if it's the value that's been selected. $selectedString = ""; - if($value == $checkedValue) { + if($value == $checkedValue || $display == $checkedValue) { //yep, it's selected. $selectedString = " ". $myType; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |