Bug fix: prevent (infinite) recursion when building search form with external keys, that point to search form with external keys, etc...

Now support nested search dialogs properly...

SVN:trunk[1210]
This commit is contained in:
Denis Flaven
2011-04-12 09:37:52 +00:00
parent a6ac44204c
commit 46e7bbe2c8
4 changed files with 32 additions and 12 deletions

View File

@@ -96,6 +96,20 @@ try
$oWidget->SearchObjectsToSelect($oPage, $sTargetClass);
break;
// ui.extkeywidget
case 'objectSearchForm':
$sTargetClass = utils::ReadParam('sRemoteClass', '');
$sAttCode = utils::ReadParam('sAttCode', '');
$iInputId = utils::ReadParam('iInputId', '');
$sSuffix = utils::ReadParam('sSuffix', '');
$sValue = utils::ReadParam('sValue', '');
//$oWizardHelper = WizardHelper::FromJSON($sJson);
//$oObj = $oWizardHelper->GetTargetObject();
$aAllowedValues = MetaModel::GetAllowedValues_att($sClass, $sAttCode, array() /*array('this' => $oObj)*/);
$oWidget = new UIExtKeyWidget($sAttCode, $sClass, '', $aAllowedValues, $sValue, $iInputId, false, $sSuffix, '');
$oWidget->GetSearchDialog($oPage);
break;
// ui.extkeywidget
case 'objectCreationForm':
$sTargetClass = utils::ReadParam('sRemoteClass', '');