Przeglądaj źródła

#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 lat temu
rodzic
commit
7514927dd3
1 zmienionych plików z 3 dodań i 1 usunięć
  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)
 					{