[Fusionforge-commits] r10683 - trunk/src/common/widget

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Sat Sep 25 12:09:30 CEST 2010


Author: nerville
Date: 2010-09-25 12:09:30 +0200 (Sat, 25 Sep 2010)
New Revision: 10683

Modified:
   trunk/src/common/widget/Widget_MySurveys.class.php
Log:
fix Survey widget

Modified: trunk/src/common/widget/Widget_MySurveys.class.php
===================================================================
--- trunk/src/common/widget/Widget_MySurveys.class.php	2010-09-25 09:56:19 UTC (rev 10682)
+++ trunk/src/common/widget/Widget_MySurveys.class.php	2010-09-25 10:09:30 UTC (rev 10683)
@@ -56,7 +56,9 @@
 		} else {
 			$request =& HTTPRequest::instance();
 			$html_my_surveys .= '<table style="width:100%">';
+			$j = 0;
 			foreach ($projects as $project) {
+				$j++;
 				$group_id = $project->getID() ;
 				$surveyfacto = new SurveyFactory($project);
 				$surveys = $surveyfacto->getSurveys();
@@ -80,7 +82,7 @@
 
 				$html_hdr = ($j ? '<tr class="boxitem"><td colspan="2">' : '').
 					$hide_url.'<A HREF="/survey/?group_id='.$group_id.'">'.
-					db_result($result,$j,'group_name').'</A>&nbsp;&nbsp;&nbsp;&nbsp;';
+					$project->getPublicName().'</A>&nbsp;&nbsp;&nbsp;&nbsp;';
 
 				$html = '';
 				$count_new = max(0, $count_diff);




More information about the Fusionforge-commits mailing list