Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
v2.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmartens committed Aug 2, 2018
1 parent 91b095e commit add65af
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Solspace Freeform Changelog

## 2.2.2 - 2018-08-02
### Changed
- Updated Element Connections feature to allow mapping Freeform File Upload fields to the User Photo field.
- Updated SharpSpring integration to work with all custom field types.

### Fixed
- Fixed a bug where the Element Connections feature would display an error for customers using Solo edition.

## 2.2.1 - 2018-07-19
### Changed
- Updated HubSpot integration to load custom fields from Contacts, Companies and Deals endpoints now, not just Deals.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "solspace/craft3-freeform-pro",
"description": "Adds API integrations, premium field types, advanced exporting and widgets to Freeform.",
"version": "2.2.1",
"version": "2.2.2",
"type": "craft-plugin",
"minimum-stability": "dev",
"authors": [
Expand Down
17 changes: 17 additions & 0 deletions src/Integrations/CRM/SharpSpring.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,29 @@ public function fetchFields(): array
$type = null;
switch ($field->dataType) {
case 'text':
case 'string':
case 'picklist':
case 'phone':
case 'url':
case 'textarea':
case 'country':
case 'checkbox':
case 'date':
case 'bit':
case 'hidden':
case 'state':
case 'radio':
case 'datetime':
$type = FieldObject::TYPE_STRING;
break;

case 'int':
$type = FieldObject::TYPE_NUMERIC;
break;

case 'boolean':
$type = FieldObject::TYPE_BOOLEAN;
break;
}

if (null === $type) {
Expand Down

0 comments on commit add65af

Please sign in to comment.