mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
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.
SVN:trunk[902]
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user