cama_contact_form 0.0.20 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aeeebe970c4ef3669393d2f08f7021376e25918e
|
4
|
+
data.tar.gz: 12338ea8e74945bda54bb49ce32c95b979b272de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84950c0821f38ce1c7490ddcbb1bf386e9bcc63002a0cf33b99e6eec583c4f2731c939e47877ed4debae5287aa206f6b2c9ab8318f3eedaeaa466369f2ba4361
|
7
|
+
data.tar.gz: 9ee6c393a414f60919ed6744b7eccb845dd22d8ebb4fca21489e6b21b9b21236cd8912113f73fcb8801cd56c97ca5efa9599ed9f0a7084f6dbcff18f9bc11698
|
@@ -71,7 +71,7 @@ module Plugins::CamaContactForm::ContactFormControllerConcern
|
|
71
71
|
elsif field[:field_type] == 'file'
|
72
72
|
values[label] << fields[cid].split('/').last if fields[cid].present?
|
73
73
|
elsif field[:field_type] == 'captcha'
|
74
|
-
values[label] <<
|
74
|
+
values[label] << (params[:captcha] rescue '')
|
75
75
|
elsif field[:field_type] == 'radio' || field[:field_type] == 'checkboxes'
|
76
76
|
values[label] << fields[cid].map { |f| f.to_s.translate }.join(', ') if fields[cid].present?
|
77
77
|
else
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# This migration comes from cama_contact_form_engine (originally 20160517143441)
|
1
2
|
class CreateDbStructure < ActiveRecord::Migration
|
2
3
|
def change
|
3
4
|
unless table_exists? 'plugins_contact_forms'
|
@@ -8,8 +9,10 @@ class CreateDbStructure < ActiveRecord::Migration
|
|
8
9
|
t.timestamps
|
9
10
|
end
|
10
11
|
end
|
11
|
-
|
12
|
-
|
12
|
+
if ActiveRecord::Base.connection.table_exists? 'cama_term_taxonomy'
|
13
|
+
CamaleonCms::Site.all.each do |s|
|
14
|
+
s.plugins.where(slug: 'contact_form').update_all(slug: 'cama_contact_form')
|
15
|
+
end
|
13
16
|
end
|
14
17
|
end
|
15
18
|
end
|