Skip to content

Commit

Permalink
Always use a drop-down list for external keys in search forms
Browse files Browse the repository at this point in the history
SVN:trunk[1575]
  • Loading branch information
dflaven committed Sep 14, 2011
1 parent aae8ca7 commit 552ffd7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion application/ui.extkeywidget.class.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,14 @@ static public function DisplayFromAttCode($oPage, $sAttCode, $sClass, $sTitle, $
$sTargetClass = $oAttDef->GetTargetClass();
$iMaxComboLength = $oAttDef->GetMaximumComboLength();
$bAllowTargetCreation = $oAttDef->AllowTargetCreation();
$sDisplayStyle = $oAttDef->GetDisplayStyle();
if (!$bSearchMode)
{
$sDisplayStyle = $oAttDef->GetDisplayStyle();
}
else
{
$sDisplayStyle = 'select'; // In search mode, always use a drop-down list
}
$oWidget = new UIExtKeyWidget($sTargetClass, $iInputId);
return $oWidget->Display($oPage, $iMaxComboLength, $bAllowTargetCreation, $sTitle, $oAllowedValues, $value, $iInputId, $bMandatory, $sFieldName, $sFormPrefix, $aArgs, $bSearchMode, $sDisplayStyle);
}
Expand Down

0 comments on commit 552ffd7

Please sign in to comment.