瀏覽代碼

#943: Fix for supporting drop-down lists/auto-completes based on a parametrized query in the portal.

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

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

@@ -480,7 +480,9 @@ EOF
 				{
 					try
 					{
-						$oAllowedValues = new DBObjectSet(DBObjectSearch::FromOQL(constant($sFilterDefName)), array(), $aFilterParams);
+						$oFitlerWithParams = DBObjectSearch::FromOQL(constant($sFilterDefName));
+						$sFilterOQL = $oFitlerWithParams->ToOQL(true, $aFilterParams);
+						$oAllowedValues = new DBObjectSet(DBObjectSearch::FromOQL($sFilterOQL), array(), $aFilterParams);
 					}
 					catch(OQLException $e)
 					{