Skip to content

Commit f8df7c4

Browse files
authored
Merge pull request #120 from Bit-Apps-Pro/rishad-dev-tmp
Version updated to v2.6.11
2 parents 2bad2e1 + 873df8f commit f8df7c4

File tree

7 files changed

+40
-23
lines changed

7 files changed

+40
-23
lines changed

bitwpfi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: Bit Integrations
55
* Plugin URI: https://bitapps.pro/bit-integrations
66
* Description: Bit Integrations is a platform that integrates with over 300+ different platforms to help with various tasks on your WordPress site, like WooCommerce, Form builder, Page builder, LMS, Sales funnels, Bookings, CRM, Webhooks, Email marketing, Social media and Spreadsheets, etc
7-
* Version: 2.6.10
7+
* Version: 2.6.11
88
* Author: Automation & Integration Plugin - Bit Apps
99
* Author URI: https://bitapps.pro
1010
* Text Domain: bit-integrations
@@ -24,7 +24,7 @@
2424
$btcbi_db_version = '1.1';
2525

2626
// Define most essential constants.
27-
define('BTCBI_VERSION', '2.6.10');
27+
define('BTCBI_VERSION', '2.6.11');
2828
define('BTCBI_PLUGIN_MAIN_FILE', __FILE__);
2929

3030
require_once plugin_dir_path(__FILE__) . 'includes/loader.php';

frontend-dev/src/components/AllIntegrations/Salesforce/SalesforceAuthorization.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import CopyText from '../../Utilities/CopyText'
66
import { handleAuthorize } from './SalesforceCommonFunc'
77
import tutorialLinks from '../../../Utils/StaticData/tutorialLinks'
88
import TutorialLink from '../../Utilities/TutorialLink'
9+
import { $btcbi } from '../../../GlobalStates'
10+
import { useRecoilValue } from 'recoil'
911

1012
export default function SalesforceAuthorization({
1113
formID,
@@ -19,6 +21,7 @@ export default function SalesforceAuthorization({
1921
redirectLocation,
2022
isInfo
2123
}) {
24+
const btcbi = useRecoilValue($btcbi)
2225
const [isAuthorized, setisAuthorized] = useState(false)
2326
const [error, setError] = useState({
2427
dataCenter: '',
@@ -126,7 +129,8 @@ export default function SalesforceAuthorization({
126129
setError,
127130
setisAuthorized,
128131
setIsLoading,
129-
setSnackbar
132+
setSnackbar,
133+
btcbi
130134
)
131135
}
132136
className="btn btcd-btn-lg purple sh-sm flx"

frontend-dev/src/components/AllIntegrations/Salesforce/SalesforceCommonFunc.js

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,8 @@ export const handleAuthorize = (
749749
setError,
750750
setisAuthorized,
751751
setIsLoading,
752-
setSnackbar
752+
setSnackbar,
753+
btcbi
753754
) => {
754755
if (!confTmp.clientId || !confTmp.clientSecret) {
755756
setError({
@@ -760,7 +761,8 @@ export const handleAuthorize = (
760761
}
761762

762763
setIsLoading(true)
763-
const apiEndpoint = `https://login.salesforce.com/services/oauth2/authorize?response_type=code&client_id=${confTmp.clientId}&prompt=login%20consent&redirect_uri=${encodeURIComponent(window.location.href)}/redirect`
764+
const apiEndpoint = `https://login.salesforce.com/services/oauth2/authorize?response_type=code&client_id=${confTmp.clientId}&prompt=login%20consent&state=${encodeURIComponent(window.location.href)}/redirect&redirect_uri=${encodeURIComponent(btcbi.api.base)}/redirect`
765+
764766
const authWindow = window.open(apiEndpoint, 'salesforce', 'width=400,height=609,toolbar=off')
765767
const popupURLCheckTimer = setInterval(() => {
766768
if (authWindow.closed) {
@@ -789,17 +791,34 @@ export const handleAuthorize = (
789791
} else {
790792
const newConf = { ...confTmp }
791793
newConf.accountServer = grantTokenResponse['accounts-server']
792-
tokenHelper(grantTokenResponse, newConf, setConf, setisAuthorized, setIsLoading, setSnackbar)
794+
tokenHelper(
795+
grantTokenResponse,
796+
newConf,
797+
setConf,
798+
setisAuthorized,
799+
setIsLoading,
800+
setSnackbar,
801+
btcbi
802+
)
793803
}
794804
}
795805
}, 500)
796806
}
797807

798-
const tokenHelper = (grantToken, confTmp, setConf, setisAuthorized, setIsLoading, setSnackbar) => {
808+
const tokenHelper = (
809+
grantToken,
810+
confTmp,
811+
setConf,
812+
setisAuthorized,
813+
setIsLoading,
814+
setSnackbar,
815+
btcbi
816+
) => {
799817
const tokenRequestParams = { ...grantToken }
800818
tokenRequestParams.clientId = confTmp.clientId
801819
tokenRequestParams.clientSecret = confTmp.clientSecret
802-
tokenRequestParams.redirectURI = `${encodeURIComponent(window.location.href)}/redirect`
820+
tokenRequestParams.redirectURI = `${btcbi.api.base}/redirect`
821+
803822
bitsFetch(tokenRequestParams, 'selesforce_generate_token').then(result => {
804823
if (result && result.success) {
805824
const newConf = { ...confTmp }

frontend-dev/src/pages/ChangelogToggle.jsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { __, sprintf } from '../Utils/i18nwrap'
1111

1212
// const source = !btcbi.isPro ? 'bit-integrations' : 'bit-integrations-pro'
1313
// const dealURL = `https://bitapps.pro/new-year-deal/#bit-integrations-pricing`
14-
const releaseDate = '20th September 2025'
14+
const releaseDate = '22th September 2025'
1515

1616
// Changelog items format [{ 'label': '', 'desc': '', 'isPro': true }]
1717
const changeLog = [
@@ -52,17 +52,7 @@ const changeLog = [
5252
items: [
5353
{
5454
label: 'Salesforce',
55-
desc: 'Fixed refresh token expiration issue.',
56-
isPro: false
57-
},
58-
{
59-
label: 'Salesforce',
60-
desc: 'Resolved issue with task creation execution.',
61-
isPro: false
62-
},
63-
{
64-
label: 'Freshdesk',
65-
desc: 'Fixed contact creation issue & Addressed problems with custom fields not working properly.',
55+
desc: 'Fixed oAUth redirect url issue.',
6656
isPro: false
6757
}
6858
]

includes/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Config
2121

2222
public const VAR_PREFIX = 'btcbi_';
2323

24-
public const VERSION = '2.6.10';
24+
public const VERSION = '2.6.11';
2525

2626
public const DB_VERSION = '1.0';
2727

includes/Core/Util/AllTriggersName.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static function allTriggersName()
2222
'AvadaForms' => ['name' => 'Avada Forms', 'isPro' => true, 'is_active' => false],
2323
'Beaver' => ['name' => 'Beaver', 'isPro' => true, 'is_active' => false],
2424
'BetterMessages' => ['name' => 'Better Messages', 'isPro' => true, 'is_active' => false],
25-
'BitAssist' => ['name' => 'Bit Assist', 'isPro' => true, 'is_active' => false],
25+
'BitAssist' => ['name' => 'Bit Assist', 'isPro' => true, 'is_active' => false],
2626
'Breakdance' => ['name' => 'Breakdance', 'isPro' => true, 'is_active' => false],
2727
'Bricks' => ['name' => 'Bricks', 'isPro' => true, 'is_active' => false],
2828
'Bricksforge' => ['name' => 'Bricksforge', 'isPro' => true, 'is_active' => false],

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: automation, automator, Google Sheets, webhooks, zapier, marketing automati
44
Requires at least: 5.1
55
Tested up to: 6.8
66
Requires PHP: 7.4
7-
Stable tag: 2.6.10
7+
Stable tag: 2.6.11
88
License: GPLv2 or later
99

1010
Perfect Automation and integration plugin: Connect 300+ platforms and automate CRM, Email marketing tools, Google Sheets, Contact forms, LMS and more
@@ -700,6 +700,10 @@ Bit Integrations follows WordPress coding standards and best practices to ensure
700700

701701
== Changelog ==
702702

703+
= 2.6.11 =
704+
- **Bug Fixes**
705+
- Salesforce: Fixed oAuth redirect url issue.
706+
703707
= 2.6.10 =
704708
- **Bug Fixes**
705709
- Salesforce: Fixed refresh token expiration issue.

0 commit comments

Comments
 (0)