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

Commit

Permalink
v2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmartens committed Sep 13, 2018
1 parent 8447d20 commit fdbdefd
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Solspace Freeform Changelog

## 2.3.1 - 2018-09-13
### Changed
- Updated reCAPTCHA field to only be allowed once per form (disappears from Special fields list when in use).
- Various tweaks and improvements for Freeform Payments compatibility.

## 2.3.0 - 2018-09-12
### Added
- Added ability to set Mailing List fields as hidden fields (automatically opting in users).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To install Freeform, simply:
1. Go to the **Plugin Store** area inside your Craft control panel and search for *Freeform*.
2. Choose to install *Freeform Lite* and/or *Freeform Pro* (*Pro* requires *Lite* to be installed) by clicking on them.
3. Click on the **Try** button to install a trial copy of Freeform.
4. Try things out and if Freeform is right for your site, purchase a copy of if through the Plugin Store when you're ready!
4. Try things out and if Freeform is right for your site, and then purchase a copy of it through the Plugin Store when you're ready!

Freeform can also be installed manually through Composer:

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.3.0",
"version": "2.3.1",
"type": "craft-plugin",
"minimum-stability": "dev",
"authors": [
Expand Down
14 changes: 10 additions & 4 deletions src/Models/ExportProfileModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Solspace\Freeform\Library\Exceptions\FreeformException;
use Solspace\Freeform\Models\FormModel;
use Solspace\Freeform\Records\StatusRecord;
use Solspace\FreeformPayments\Fields\CreditCardDetailsField;

class ExportProfileModel extends Model
{
Expand All @@ -37,6 +38,7 @@ class ExportProfileModel extends Model

/** @var array */
public $statuses;

/**
* @param Form $form
*
Expand Down Expand Up @@ -136,8 +138,11 @@ public function getFieldSettings(): array
if (is_numeric($fieldId)) {
try {
$field = $form->getLayout()->getFieldById($fieldId);
$label = $field->getLabel();
if ($field instanceof CreditCardDetailsField) {
continue;
}

$label = $field->getLabel();
$storedFieldIds[] = $field->getId();
} catch (FreeformException $e) {
continue;
Expand All @@ -160,15 +165,15 @@ public function getFieldSettings(): array
'label' => 'Title',
'checked' => true,
];
$fieldSettings['ip'] = [
$fieldSettings['ip'] = [
'label' => 'IP',
'checked' => true,
];
$fieldSettings['dateCreated'] = [
'label' => 'Date Created',
'checked' => true,
];
$fieldSettings['status'] = [
$fieldSettings['status'] = [
'label' => 'Status',
'checked' => true,
];
Expand All @@ -177,6 +182,7 @@ public function getFieldSettings(): array
foreach ($form->getLayout()->getFields() as $field) {
if (
$field instanceof NoStorageInterface ||
$field instanceof CreditCardDetailsField ||
!$field->getId() ||
\in_array($field->getId(), $storedFieldIds, true)
) {
Expand Down Expand Up @@ -248,7 +254,7 @@ private function buildCommand(): Query

$dateRangeEnd = $this->getDateRangeEnd();
if ($dateRangeEnd) {
$conditions[] = 's.[[dateCreated]] >= :dateRangeEnd';
$conditions[] = 's.[[dateCreated]] >= :dateRangeEnd';
$parameters['dateRangeEnd'] = $dateRangeEnd->format('Y-m-d H:i:s');
}

Expand Down

0 comments on commit fdbdefd

Please sign in to comment.