فهرست منبع

- Fixed bug #225: improve friendliness of auto-complete

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@715 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 سال پیش
والد
کامیت
d983705f83
2فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 4 0
      application/cmdbabstract.class.inc.php
  2. 1 1
      css/light-grey.css

+ 4 - 0
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 = "<input count=\"".count($aAllowedValues)."\" type=\"text\" id=\"label_$iId\" size=\"30\" maxlength=\"255\" value=\"$sDisplayValue\"{$sCSSClasses}/>&nbsp;{$sValidationField}";
 							// another hidden input to store & pass the object's Id
 							$sHTMLValue .= "<input type=\"hidden\" id=\"$iId\" name=\"attr_{$sFieldPrefix}{$sAttCode}{$sNameSuffix}\" value=\"$value\" />\n";

+ 1 - 1
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 */