Explorar o código

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 %!s(int64=12) %!d(string=hai) anos
pai
achega
3dc221642e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;