Browse Source

Bug fix: "Configure this list" was not working on some ,lists (with a ID containing a colon (:) from a Menu)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2488 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 years ago
parent
commit
3dc221642e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/datatable.class.inc.php

+ 1 - 1
application/datatable.class.inc.php

@@ -40,7 +40,7 @@ class DataTable
 	 */
 	public function __construct($iListId, $oSet, $aClassAliases, $sTableId = null)
 	{
-		$this->iListId = $iListId;
+		$this->iListId = str_replace(array('[', ']', '-', ':'), '_', $iListId); // Make a "safe" ID for jQuery
 		$this->oSet = $oSet;
 		$this->aClassAliases = $aClassAliases;
 		$this->sTableId = $sTableId;