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: 560352aa1bbdfa399683e71252fbd68444c5ce2d
4
- data.tar.gz: 1e41fb350ba427b2fb53911931e56a1f14d99abd
3
+ metadata.gz: aeeebe970c4ef3669393d2f08f7021376e25918e
4
+ data.tar.gz: 12338ea8e74945bda54bb49ce32c95b979b272de
5
5
  SHA512:
6
- metadata.gz: 76367942977c6c816a36f34eec99f259903e5747303120d102b494906276861a50b9d217e84d286b5dbc2ce1db1a7dfa43f901bd81038ac7bf04d4d4842e8e45
7
- data.tar.gz: 9899a0e9bfd0527dec7ecf2747f670639c591fc18cf91af2b825cc0b2a28e37a6530f8b7a7681ec9bfd60425dabf55a389a6f3ee402b2fffd4da5a377cc0589b
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] << "--<span style='display:none;'>#{fields[cid]}</span>"
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
- CamaleonCms::Site.all.each do |s|
12
- s.plugins.where(slug: 'contact_form').update_all(slug: 'cama_contact_form')
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
@@ -1,3 +1,3 @@
1
1
  module CamaContactForm
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.21"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cama_contact_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen Peredo