rem: if (vocabC.categoryUri) p.push(vocabC.categoryUri); 
add: if (!vocabC.categoryUri) vocabC.categoryUri="{}";  p.push(vocabC.categoryUri); 
context: var createSearchComponent = function(){			 var searchHandler = function(record, index){        	        	             if(this.fireEvent('beforeselect', this, record, index) !== false){        	    this.setValue(record.data.value);            	this.collapse();            	this.fireEvent('select', this, record, index);											vocabC.valueUri = record.data.valueUri;				vocabC.value = record.data.value;            }           	    	                	        }                	var     recordType = Ext.data.Record.create([					   {name:"id", type:"int"},                       {name:"value", type:"string"},                       {name:"valueUri", type:"string"},                       {name:"categoryUri",type:"string"},                       {name:"category", type:"string"},                                              {name:"description", type:"string"}               ]);       ds = new Ext.data.Store(               {                       proxy:new Ext.data.DWRProxy(OntologyService.findExactTerm),                       reader:new Ext.data.ListRangeReader({id:"id"}, recordType),                       remoteSort:false,                       sortInfo:{field:'id'}               });       var cm = new Ext.grid.ColumnModel([                       {header: "term", width: 50, dataIndex:"value"},                       {header: "uri",  width: 80, dataIndex:"valueUri"}                                              ]);       cm.defaultSortable = true;	         // Custom rendering Template    var resultTpl = new Ext.Template(        '<div class="search-item" title="{description}">',            '<h4><span>{id}</span>{value}</h4>',            '{valueUri}',        '</div>'    );        var search = new Ext.form.ComboBox({        store: ds,        displayField:'title',        fieldLabel: 'Lookup',        typeAhead: false,        loadingText: 'Searching...',        width: 270,        pageSize:0,        minChars: 2,        tpl: resultTpl,        hideTrigger:true,            onSelect: searchHandler,          getParams: function (q) {	//Need to overide this so that the query data makes it to the client side. Otherwise its not included.     		var p = [q];     		    		vocabC.value = q;	//if the user doesn't select a provided ontolgy term this will set it to be the free text.     		if (vocabC.categoryUri)   		 		p.push(vocabC.categoryUri);   		 		   		 	return p;		}            });		return search;	}
meta: 2891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2891/001243698c919b256ac1eabe619975622c09d815/eeAnnotator.js/buggy/gemma-web/src/main/webapp/scripts/ajax/eeAnnotator.js