瀏覽代碼

Fixed issue in the portal: the list of opened requests and closed request where messed up when pagination was activated on both lists

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2267 a333f486-631f-4898-b8df-5754b55c2be0
romainq 12 年之前
父節點
當前提交
71dc1a0c67
共有 1 個文件被更改,包括 3 次插入7 次删除
  1. 3 7
      application/portalwebpage.class.inc.php

+ 3 - 7
application/portalwebpage.class.inc.php

@@ -279,13 +279,9 @@ EOF
 			{
 				// Home-made and very limited display of an object set
 
-				//
-				//$oSet->Seek(0);// juste pour que le warning soit moins crado
-				//$oSet->Fetch();// juste pour que le warning soit moins crado
-				//
-
-				$this->add("<div id=\"listOf$sClass\">\n");
-				cmdbAbstractObject::DisplaySet($this, $oSet, array('currentId' => $this->GetUniqueId()."$sClass", 'menu' => false, 'zlist' => false, 'extra_fields' => implode(',', $aZList)));
+				$sUniqueId = $sClass.$this->GetUniqueId();
+				$this->add("<div id=\"$sUniqueId\">\n"); // The id here MUST be the same as currentId, otherwise the pagination will be broken
+				cmdbAbstractObject::DisplaySet($this, $oSet, array('currentId' => $sUniqueId, 'menu' => false, 'zlist' => false, 'extra_fields' => implode(',', $aZList)));
 				$this->add("</div>\n");
 			}
 			else