77b709d1f939f8360e1c689fe59390e75b84a019
tdreszer
  Mon Feb 28 13:28:06 2011 -0800
Mdb vars for files, not tables
diff --git src/hg/hgFileSearch/hgFileSearch.c src/hg/hgFileSearch/hgFileSearch.c
index 3304199..2061c53 100644
--- src/hg/hgFileSearch/hgFileSearch.c
+++ src/hg/hgFileSearch/hgFileSearch.c
@@ -94,31 +94,31 @@
             return TRUE;
         }
     }
 return FALSE;
 }
 
 #endif///def SUPPORT_COMPOSITE_SEARCH
 
 static int getTermArray(struct sqlConnection *conn, char ***pLabels, char ***pTerms, char *type)
 // Pull out all term fields from ra entries with given type
 // Returns count of items found and items via the terms argument.
 {
 int ix = 0, count = 0;
 char **labels;
 char **values;
-struct slPair *pairs = mdbValLabelSearch(conn, type, MDB_VAL_STD_TRUNCATION, TRUE, FALSE); // Tables not files
+struct slPair *pairs = mdbValLabelSearch(conn, type, MDB_VAL_STD_TRUNCATION, FALSE, TRUE); // Files not Tables
 count = slCount(pairs) + 1; // make room for "Any"
 AllocArray(labels, count);
 AllocArray(values, count);
 labels[ix] = cloneString(ANYLABEL);
 values[ix] = cloneString(ANYLABEL);
 struct slPair *pair = NULL;
 while((pair = slPopHead(&pairs)) != NULL)
     {
     ix++;
     labels[ix] = pair->name;
     values[ix] = pair->val;
     freeMem(pair);
     }
 *pLabels = labels;
 *pTerms = values;