浏览代码

Fixed Trac #245: Search form now retains the base class that was used when displaying the form. After searching a Person it is possible to select "Contact" and perform another search on Contacts.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@902 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 年之前
父节点
当前提交
da475f7863
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      pages/UI.php

+ 7 - 1
pages/UI.php

@@ -609,7 +609,13 @@ try
 			$oSet = new DBObjectSet($oFilter);
 			if ($bSearchForm)
 			{
-				$oBlock = new DisplayBlock($oFilter, 'search', false /* Asynchronous */, array('open' => true));
+				$aParams = array('open' => true);
+				$sBaseClass = utils::ReadParam('baseClass', '');
+				if (!empty($sBaseClass))
+				{
+					$aParams['baseClass'] = $sBaseClass;
+				}
+				$oBlock = new DisplayBlock($oFilter, 'search', false /* Asynchronous */, $aParams);
 				$oBlock->Display($oP, 0);
 			}
 			if (strtolower($sFormat) == 'csv')