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

Commit

Permalink
v2.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmartens committed Sep 24, 2018
1 parent dd6bcc4 commit bc36af9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 25 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Solspace Freeform Changelog

## 2.3.4 - 2018-09-24
### Changed
- Updated page changes (forward and backward) in multipage forms to auto-scroll to form (helpful if your form is lower down on page).

### Fixed
- Fixed a bug where Salesforce API connections were still holding their connection.
- Fixed a bug where the SharpSpring API integration was not connecting to SharpSpring.
- Fixed a bug where forms would error on front end if Spam Blocking keywords contained regex-specific symbols.

## 2.3.3 - 2018-09-17
### Fixed
- Fixed a bug where Payments were not working correctly in Flexbox and Grid formatting templates and demo templates.
Expand Down
5 changes: 3 additions & 2 deletions 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.3",
"version": "2.3.4",
"type": "craft-plugin",
"minimum-stability": "dev",
"authors": [
Expand All @@ -12,7 +12,8 @@
],
"require": {
"craftcms/cms": "^3.0.0",
"solspace/craft3-commons": "^1.0.8"
"solspace/craft3-freeform": "^2.3.0",
"solspace/craft3-commons": "^1.0.13"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Fields/RatingField.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ protected function getInputHtml(): string
*/
private function getStyles(): string
{
$cssPath = __DIR__ . '/../../../freeform/src/Resources/css/fields/rating.css';
$cssPath = __DIR__ . '/../../../freeform/src/Resources/css/form-frontend/fields/rating.css';

$output = '<style>' . PHP_EOL;
$output .= @file_get_contents($cssPath);
Expand Down
6 changes: 6 additions & 0 deletions src/Integrations/CRM/SalesforceLead.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,12 @@ public function fetchFields(): array
$this->getLogger()->log(LoggerInterface::LEVEL_ERROR, $responseBody, self::LOG_CATEGORY);
$this->getLogger()->log(LoggerInterface::LEVEL_ERROR, $e->getMessage(), self::LOG_CATEGORY);

// If we get an unauthorized error - we throw the exception to trigger token refresh
if ($e->getCode() === 401) {
throw $e;
}


return [];
}

Expand Down
23 changes: 1 addition & 22 deletions src/Integrations/CRM/SharpSpring.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,27 +297,6 @@ public function fetchAccessToken(): string
return '';
}

/**
* Sets presets for authorization on a Guzzle Client
*
* @return Client
* @throws IntegrationException
*/
private function getAuthorizedClient(): Client
{
$client = new Client();
$client->setBaseUrl($this->getApiRootUrl());
$client->setDefaultOption(
'query',
[
'accountID' => $this->getAccountID(),
'secretKey' => $this->getSecretKey(),
]
);

return $client;
}

/**
* @param array $payload
*
Expand All @@ -331,7 +310,7 @@ private function getResponse(array $payload): ResponseInterface
$this->getApiRootUrl(),
[
'query' => [
'accountId' => $this->getAccountID(),
'accountID' => $this->getAccountID(),
'secretKey' => $this->getSecretKey(),
],
'json' => $payload,
Expand Down

0 comments on commit bc36af9

Please sign in to comment.