[Piwik-svn] r408 - trunk/modules

svnmaster at piwik.org svnmaster at piwik.org
Sun Mar 23 02:42:50 CET 2008


Author: matt
Date: 2008-03-23 02:42:49 +0100 (Sun, 23 Mar 2008)
New Revision: 408

Modified:
   trunk/modules/ViewDataTable.php
Log:
- fixing bug recently introduced, tables were not ajaxified anymore

Modified: trunk/modules/ViewDataTable.php
===================================================================
--- trunk/modules/ViewDataTable.php	2008-03-23 01:37:00 UTC (rev 407)
+++ trunk/modules/ViewDataTable.php	2008-03-23 01:42:49 UTC (rev 408)
@@ -214,17 +214,20 @@
 
 	protected function getUniqIdTable()
 	{
-		// the $uniqIdTable variable is used as the DIV ID in the rendered HTML
-		// we use the current Controller action name as it is supposed to be unique in the rendered page 
-		$uniqIdTable = $this->currentControllerName . $this->currentControllerAction;
 		
 		// if we request a subDataTable the $this->currentControllerAction DIV ID is already there in the page
 		// we make the DIV ID really unique by appending the ID of the subtable requested
-		if( $this->idSubtable !== false)
+		if( $this->idSubtable !== false
+			&& $this->idSubtable != 0)
 		{
-			$uniqIdTable .=  '_' . $this->idSubtable;
+			$uniqIdTable .=  'subTable_' . $this->idSubtable;
 		}
-		
+		else
+		{
+			// the $uniqIdTable variable is used as the DIV ID in the rendered HTML
+			// we use the current Controller action name as it is supposed to be unique in the rendered page 
+			$uniqIdTable = $this->currentControllerName . $this->currentControllerAction;
+		}
 		return $uniqIdTable;
 	}
 	



More information about the Piwik-svn mailing list