Skip to content

Commit

Permalink
fix odoo lead
Browse files Browse the repository at this point in the history
  • Loading branch information
davidperezgar committed Mar 5, 2024
1 parent 9b9bde1 commit 2dfa956
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
4 changes: 2 additions & 2 deletions formscrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: FormsCRM
* Plugin URI: https://closemarketing.net/formscrm
* Description: Connects Forms with CRM, ERP and Email Marketing.
* Version: 3.13.1
* Version: 3.13.2
* Author: Closemarketing
* Author URI: https://close.marketing
* Text Domain: formscrm
Expand All @@ -23,7 +23,7 @@

defined( 'ABSPATH' ) || die( 'No script kiddies please!' );

define( 'FORMSCRM_VERSION', '3.13.1' );
define( 'FORMSCRM_VERSION', '3.13.2' );
define( 'FORMSCRM_PLUGIN', __FILE__ );
define( 'FORMSCRM_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'FORMSCRM_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
Expand Down
11 changes: 0 additions & 11 deletions includes/formscrm-library/class-contactform7.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,17 +273,6 @@ public function crm_process_entry( $contact_form ) {

formscrm_debug_email_lead( $cf7_crm['fc_crm_type'], 'Error ' . $response_result['message'], $merge_vars, $url, $query );
}

if ( 'odoo' === $crm_type && $cf7_crm !== 'res.part' ) {
$response_result = $this->crmlib->create_lead( $cf7_crm, $response_result,$merge_vars );

if ( 'error' === $response_result['status'] ) {
$url = isset( $response_result['url'] ) ? $response_result['url'] : '';
$query = isset( $response_result['query'] ) ? $response_result['query'] : '';

formscrm_debug_email_lead( $cf7_crm['fc_crm_type'], 'Error ' . $response_result['message'], $merge_vars, $url, $query );
}
}
}

/**
Expand Down
9 changes: 6 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: closemarketing, davidperez, sacrajaimez
Tags: gravityforms, gravity, form, forms, gravity forms, crm, vtiger, sugarcrm
Donate link: https://close.marketing/go/donate/
Requires at least: 5.0
Tested up to: 6.3.0
Stable tag: 3.13.1
Version: 3.13.1
Tested up to: 6.5.0
Stable tag: 3.13.2
Version: 3.13.2
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -62,6 +62,9 @@ WordPress installation and then activate the Plugin from Plugins page.
[Official Repository GitHub](https://github.com/closemarketing/formscrm/)

== Changelog ==
= 3.13.2 =
* Removed Odoo part not necessary in CF7.

= 3.13.1 =
* Fix not launching autoupdate.

Expand Down

0 comments on commit 2dfa956

Please sign in to comment.