From 7384191fb6a7792745cb0e588602b7e2650fdf17 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Wed, 22 Jun 2011 15:26:36 +0000 Subject: [PATCH] Fixed issues in ExtKey Widget SVN:trunk[1293] --- application/ui.extkeywidget.class.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/ui.extkeywidget.class.inc.php b/application/ui.extkeywidget.class.inc.php index a65792c13..2d7c2ff03 100644 --- a/application/ui.extkeywidget.class.inc.php +++ b/application/ui.extkeywidget.class.inc.php @@ -174,10 +174,9 @@ EOF } $iMinChars = isset($aArgs['iMinChars']) ? $aArgs['iMinChars'] : 3; //@@@ $this->oAttDef->GetMinAutoCompleteChars(); $iFieldSize = isset($aArgs['iFieldSize']) ? $aArgs['iFieldSize'] : 30; //@@@ $this->oAttDef->GetMaxSize(); - $iDropDownSize = 10; // the input for the auto-complete - $sHTMLValue = "Count()."\" type=\"text\" id=\"label_$this->iId\" size=\"$iFieldSize\" maxlength=\"$iDropDownSize\" value=\"$sDisplayValue\"/> "; + $sHTMLValue = "Count()."\" type=\"text\" id=\"label_$this->iId\" size=\"$iFieldSize\" value=\"$sDisplayValue\"/> "; $sHTMLValue .= "iId}.Search();\">iId}\" style=\"border:0;vertical-align:middle;\" src=\"../images/mini_search.gif\" /> "; // another hidden input to store & pass the object's Id @@ -294,7 +293,7 @@ EOF $aValues = $oValuesSet->GetValues(array('this' => $oObj), $sContains); foreach($aValues as $sKey => $sFriendlyName) { - $oP->add($sFriendlyName."|".$sKey."\n"); + $oP->add(trim($sFriendlyName)."|".$sKey."\n"); } }