vtiger 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -0
- data/lib/vtiger/commands.rb +3 -4
- data/test/test_vtiger.rb +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
data/lib/vtiger/commands.rb
CHANGED
@@ -142,8 +142,8 @@ module Vtiger
|
|
142
142
|
return res["success"],ticketlist
|
143
143
|
|
144
144
|
end
|
145
|
-
|
146
|
-
puts "in query tt by contact"
|
145
|
+
def check_open_tt_by_contact(contact)
|
146
|
+
puts "in query open tt by contact"
|
147
147
|
action_string=ERB::Util.url_encode("select id,ticket_no from HelpDesk where parent_id = '#{contact}' and ticketstatus like 'Open';")
|
148
148
|
# puts "action string:" +action_string
|
149
149
|
res = http_ask_get(self.endpoint_url+"operation=query&sessionName=#{self.session_name}&query="+action_string)
|
@@ -154,8 +154,7 @@ module Vtiger
|
|
154
154
|
ticketlist=[]
|
155
155
|
values.each {|v| ticketlist << v['ticket_no'] }
|
156
156
|
return res["success"],ticketlist
|
157
|
-
|
158
|
-
end
|
157
|
+
end
|
159
158
|
def run_rules(test)
|
160
159
|
yield(test)
|
161
160
|
end
|
data/test/test_vtiger.rb
CHANGED
@@ -152,7 +152,7 @@ class TestVtiger < Test::Unit::TestCase
|
|
152
152
|
hv={}
|
153
153
|
# hv[:firstname]='test'
|
154
154
|
success,contact_id=cmd.query_element_by_email("scott.sproule@gmail.com","Contacts")
|
155
|
-
tt,ticketlist=cmd.
|
155
|
+
tt,ticketlist=cmd.check_open_tt_by_contact(contact_id) if success
|
156
156
|
puts "trouble ticket is #{tt} ticket number is #{ticketlist}"
|
157
157
|
assert challenge,"challenge is false "
|
158
158
|
assert success,"could not find contact id with email scott.sproule@gmail.com "
|
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:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 5
|
10
|
+
version: 0.4.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Sproule
|