[evolvis-commits] r17735: fix form submission with only one theme installed

mirabilos at evolvis.org mirabilos at evolvis.org
Wed Nov 30 15:02:34 CET 2011


Author: mirabilos
Date: 2011-11-30 15:02:34 +0100 (Wed, 30 Nov 2011)
New Revision: 17735

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/www/include/html.php
Log:
fix form submission with only one theme installed


Modified: trunk/gforge_base/evolvisforge-5.1/src/www/include/html.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/include/html.php	2011-11-30 14:02:29 UTC (rev 17734)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/include/html.php	2011-11-30 14:02:34 UTC (rev 17735)
@@ -161,7 +161,11 @@
 	$nbTheme = db_numrows($res);
 	if ($nbTheme == 1) {
 		$thetheme = db_result($res, 0, 'fullname');
-		return util_html_secure($thetheme);
+		return util_html_secure($thetheme) . html_e('input', array(
+			'type' => 'hidden',
+			'name' => $title,
+			'value' => db_result($res, 0, 'theme_id'),
+		    ));
 	} else if ($nbTheme < 1) {
 		return("");
 	} else {



More information about the evolvis-commits mailing list