Index: branches/unlabeled/unlabeled-1.9.2/kernel/include/customfield.php =================================================================== diff -u -N -r4378 -r4435 --- branches/unlabeled/unlabeled-1.9.2/kernel/include/customfield.php (.../customfield.php) (revision 4378) +++ branches/unlabeled/unlabeled-1.9.2/kernel/include/customfield.php (.../customfield.php) (revision 4435) @@ -219,7 +219,7 @@ $dtable = GetTablePrefix()."CustomMetaData"; $Join = "($dtable.ResourceId={Table}.ResourceId)"; - $objSearchConfig->AddSearchField($Table,$FieldName,$Module,0,0, + $objSearchConfig->AddSearchField($Table,$FieldName,$Module,$Type == 6 ? -1 : 0,0, $FieldLabel,$desc,$Header,$NextOrder,0, $ElementType, NULL, NULL, NULL, NULL, NULL, $f->Get("CustomFieldId"), NULL); Index: trunk/kernel/include/customfield.php =================================================================== diff -u -N -r4330 -r4435 --- trunk/kernel/include/customfield.php (.../customfield.php) (revision 4330) +++ trunk/kernel/include/customfield.php (.../customfield.php) (revision 4435) @@ -222,7 +222,7 @@ $dtable = GetTablePrefix()."CustomMetaData"; $Join = "($dtable.ResourceId={Table}.ResourceId)"; - $objSearchConfig->AddSearchField($Table,$FieldName,$Module,0,0, + $objSearchConfig->AddSearchField($Table,$FieldName,$Module,$Type == 6 ? -1 : 0, 0, $FieldLabel,$desc,$Header,$NextOrder,0, $ElementType,$Join, NULL, NULL, NULL, NULL, $f->Get("CustomFieldId"), "CustomMetaData.Value");