         value = this.get('value')
         value +='%' if 'like' == op
         value = parseFloat(value) if @field.type == "n"
-        param[ this.field.field ] = if 'eq' == op then value else { op: op, value: value }
+        param[ this.field.id ] = if 'eq' == op then value else { op: op, value: value }
         param
 
 

        @fields.at(0).selected = true
        @operators.at(0).selected = true

        window.q = this

    setField: (field)->
        return unless field.selected

    constructor: (models,options)->
        @query = options.query
        super

    model: Field


class Operator extends Lanes.Models.Base
