From 1d0f0231a4ddc8cf039dacfbc46734be195f0032 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Mon, 30 Aug 2010 12:02:36 +0000 Subject: [PATCH] - Fixed bug #225: improve friendliness of auto-complete SVN:trunk[715] --- application/cmdbabstract.class.inc.php | 4 ++++ css/light-grey.css | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index 4ba470e8f..b241cbe97 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -1029,6 +1029,10 @@ abstract class cmdbAbstractObject extends CMDBObject { // too many choices, use an autocomplete // The input for the auto complete + if ($sDisplayValue == $oAttDef->GetNullValue()) // Null or zero is displayed as '' + { + $sDisplayValue = ''; + } $sHTMLValue = " {$sValidationField}"; // another hidden input to store & pass the object's Id $sHTMLValue .= "\n"; diff --git a/css/light-grey.css b/css/light-grey.css index 5c6413a0f..d39ce73da 100644 --- a/css/light-grey.css +++ b/css/light-grey.css @@ -205,7 +205,7 @@ input.textSearch { .ac_input { border: 1px solid #7f9db9; - background: url(../images/ac-background.gif) no-repeat right; + background: #fff url(../images/ac-background.gif) no-repeat right; } /* By Rom */