Properly handle restrictions (e.g. AllowedValues) on objects that are used as n:n relationships managed via LinksWidget.

SVN:trunk[1684]
This commit is contained in:
Denis Flaven
2011-11-21 13:00:36 +00:00
parent 7658f5dba5
commit 22f79b7d99
2 changed files with 3 additions and 2 deletions

View File

@@ -1566,7 +1566,8 @@ EOF
$aEventsList[] ='validate';
$aEventsList[] ='change';
$oWidget = new UILinksWidget($sClass, $sAttCode, $iId, $sNameSuffix, $oAttDef->DuplicatesAllowed(), $aArgs);
$sHTMLValue = $oWidget->Display($oPage, $value, array(), '', $this);
$oObj = isset($aArgs['this']) ? $aArgs['this'] : null;
$sHTMLValue = $oWidget->Display($oPage, $value, array(), $sFormPrefix, $oObj);
break;
case 'Document':