瀏覽代碼

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 年之前
父節點
當前提交
3dc221642e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
 	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->oSet = $oSet;
 		$this->aClassAliases = $aClassAliases;
 		$this->aClassAliases = $aClassAliases;
 		$this->sTableId = $sTableId;
 		$this->sTableId = $sTableId;