vtiger 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/vtiger/commands.rb +3 -3
  2. metadata +3 -3
@@ -171,12 +171,12 @@ module Vtiger
171
171
  # eg v.find_items_by_date_and_key_not_null('Contacts',to_s,'cf_579',"")
172
172
  def find_items_by_date_and_key_not_null(element,date,key, extraparam=nil)
173
173
  puts "in query by date and not null "
174
- queryparams=',key'
174
+ queryparams=''
175
175
  queryparams=",#{extraparam}" if extraparam!=nil
176
176
  t=Time.parse(date)
177
177
  y=t.strftime('%Y-%m-%d')
178
- action_string=ERB::Util.url_encode("select id#{queryparams} from #{element} where createdtime like '#{y}%' and #{key} != '';")
179
- # puts "action string:" +action_string
178
+ action_string=ERB::Util.url_encode("select id,#{key}#{queryparams} from #{element} where createdtime like '#{y}%' and #{key} LIKE '2%';")
179
+ puts "action string:" +action_string
180
180
  res = http_ask_get(self.endpoint_url+"operation=query&sessionName=#{self.session_name}&query="+action_string)
181
181
  puts "TT RES: #{res["result"]} class: #{res["result"].class}"
182
182
  values=res["result"] if res["success"]==true #comes back as array
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vtiger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 5
10
- version: 0.5.5
9
+ - 6
10
+ version: 0.5.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Sproule