N°729 Form prefill : Minor fix for prefillSeachForm

SVN:trunk[5665]
This commit is contained in:
Stephen Abello
2018-04-13 14:17:03 +00:00
parent e026ecf92f
commit 163f5dba8a
2 changed files with 6 additions and 10 deletions

View File

@@ -303,14 +303,9 @@ try
$aPrefillFormParam = array( 'user' => $_SESSION["auth_user"],
'context' => $oAppContext->GetAsHash(),
'att_code' => $sAttCode,
'origin' => 'console'
'origin' => 'console',
'source_obj' => $oObj
);
if (!empty($sJson))
{
$oWizardHelper = WizardHelper::FromJSON($sJson);
$oSourceObj = $oWizardHelper->GetTargetObject();
$aPrefillFormParam['source_obj'] = $oSourceObj;
}
$aAlreadyLinked = utils::ReadParam('aAlreadyLinked', array());
$oWidget->GetObjectPickerDialog($oPage, $oObj, $sJson, $aAlreadyLinked, $aPrefillFormParam);
break;