vtiger 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vtiger/base.rb +4 -4
- metadata +4 -4
data/lib/vtiger/base.rb
CHANGED
@@ -55,9 +55,9 @@ class CampaignList < ActiveRecord::Base
|
|
55
55
|
mysql_results=CampaignList.connection.execute("select vtiger_account.email1 as 'email', vtiger_account.accountname, vtiger_campaignaccountrel.campaignid from vtiger_account left join vtiger_campaignaccountrel on vtiger_account.accountid=vtiger_campaignaccountrel.accountid where vtiger_campaignaccountrel.campaignid=#{id} and emailoptout=0;;")
|
56
56
|
CampaignList.convert(mysql_results)
|
57
57
|
end
|
58
|
-
def self.find_contacts_by_customfield(field,value)
|
58
|
+
def self.find_contacts_by_customfield(field,value,extra='') # ",customfield as latest_receipt"
|
59
59
|
puts "field: #{field} value #{value}"
|
60
|
-
mysql_results=CampaignList.connection.execute("select vtiger_contactdetails.contactid as 'id',vtiger_contactdetails.email as 'email',#{field} as 'tsipid' from vtiger_contactdetails left join vtiger_contactscf on vtiger_contactdetails.contactid=vtiger_contactscf.contactid where #{field} like '#{value}%';")
|
60
|
+
mysql_results=CampaignList.connection.execute("select vtiger_contactdetails.contactid as 'id',vtiger_contactdetails.email as 'email'#{extra},#{field} as 'tsipid' from vtiger_contactdetails left join vtiger_contactscf on vtiger_contactdetails.contactid=vtiger_contactscf.contactid where #{field} like '#{value}%';")
|
61
61
|
# puts "after campaign #{mysql_results}"
|
62
62
|
CampaignList.convert(mysql_results)
|
63
63
|
end
|
@@ -280,9 +280,9 @@ def get_contacts_from_campaign(campaignid)
|
|
280
280
|
CampaignList.find_contacts_by_campaign(campaignid)
|
281
281
|
|
282
282
|
end
|
283
|
-
def get_contacts_by_cf(field,value)
|
283
|
+
def get_contacts_by_cf(field,value,extra='')
|
284
284
|
#self.campaigndb.find_contacts_by_campaign(self.campaigndb,campaignid)
|
285
|
-
CampaignList.find_contacts_by_customfield(field,value)
|
285
|
+
CampaignList.find_contacts_by_customfield(field,value,extra)
|
286
286
|
end
|
287
287
|
def get_contacts_by_email_and_keynull(field,value)
|
288
288
|
#self.campaigndb.find_contacts_by_campaign(self.campaigndb,campaignid)
|
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: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 7
|
10
|
+
version: 0.7.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Sproule
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-17 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|