Changeset 3193765
- Timestamp:
- 11/21/2024 05:42:45 AM (17 months ago)
- Location:
- zoho-crm-forms/trunk
- Files:
-
- 4 edited
-
Readme.txt (modified) (2 diffs)
-
includes/crmcontactform7.php (modified) (2 diffs)
-
includes/crmshortcodefunctions.php (modified) (1 diff)
-
index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
zoho-crm-forms/trunk/Readme.txt
r3192234 r3193765 7 7 Author: Zoho CRM 8 8 Tested up to: 6.7 9 Stable tag: 1.7.9.99 Stable tag: 1.8.0.0 10 10 License: GPLv2 or later 11 Version: 1. 7.9.911 Version: 1.8.0.0 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html 13 13 … … 305 305 1.7.9.9 306 306 Php latest version compatibility checking 307 1.8.0.0 308 Php latest version compatibility checking 307 309 308 310 == Upgrade notice == -
zoho-crm-forms/trunk/includes/crmcontactform7.php
r3178280 r3193765 169 169 170 170 $mapping = $wpdb->get_results($wpdb->prepare("select crmformsfieldslable,thirdpartyfieldids from zcf_contactformrelation where thirdpartyformid=%d", $post_id) ); 171 foreach ($mapping as $key => $value) { 172 $crmformsfieldslable[$key] = $value['crmformsfieldslable']; 173 $thirdpartyfieldids[$key] = $value['thirdpartyfieldids']; 171 172 if (!empty($mapping)) { 173 foreach ($mapping as $key => $value) { 174 $crmformsfieldslable[$key] = $value['crmformsfieldslable']; 175 $thirdpartyfieldids[$key] = $value['thirdpartyfieldids']; 176 } 177 $thirdpartyfieldids = array_flip($thirdpartyfieldids); 178 } else { 179 $thirdpartyfieldids = []; 174 180 } 175 181 $crmformsfieldquery = "SELECT a.field_name, a.field_values, a.field_type FROM zcf_zohocrmform_field_manager AS a JOIN zcf_zohocrm_formfield_manager AS b ON b.field_id = a.field_id JOIN zcf_contactformrelation AS c ON c.crmformsfieldid = b.rel_id WHERE c.thirdpartyformid = %d"; … … 177 183 $crmformsfieldName = $wpdb->get_results($wpdb->prepare($crmformsfieldquery, $post_id) ); 178 184 179 $thirdpartyfieldids = array_flip($thirdpartyfieldids); 185 if (is_array($thirdpartyfieldids)) { 186 $thirdpartyfieldids = array_flip($thirdpartyfieldids); 187 } else { 188 $thirdpartyfieldids = []; // Handle empty or invalid cases gracefully 189 } 190 180 191 181 192 foreach ($thirdpartyfieldids as $key => $value) { -
zoho-crm-forms/trunk/includes/crmshortcodefunctions.php
r3185097 r3193765 512 512 513 513 function zcfupdateFieldsOrder($field_order, $shortcode_name) { 514 $field_order = array_flip($field_order); 514 if (!is_array($field_order)) { 515 $field_order = array_flip($field_order); 516 }else { 517 $field_order = []; // Handle empty or invalid cases gracefully 518 } 515 519 global $wpdb; 516 520 $get_shortcode_id = $wpdb->get_results($wpdb->prepare("select shortcode_id from zcf_zohoshortcode_manager where shortcode_name = %s and crm_type = %s", $shortcode_name, 'crmformswpbuilder')); -
zoho-crm-forms/trunk/index.php
r3192234 r3193765 4 4 * Plugin Name: Zoho CRM Lead Magnet 5 5 * Description: Websites are one of the most important sources of leads for your business. That means your CRM system should be well integrated with your website to contextually capture each and every visitor to turn them into a lead.Introducing the Zoho CRM Lead Capture plugin for Wordpress. This lets you create webforms, embed them in your website, and automatically capture leads directly into your CRM with zero attenuation.Not only is the integration easy to set-up but it's also easy on your wallet. 6 * Version: 1. 7.9.96 * Version: 1.8.8.0 7 7 * ***************************************************************************************** */ 8 8 if (!defined('ABSPATH')) 9 9 exit; 10 10 11 define( 'ZCF_VERSION', '1. 7.9.9' );11 define( 'ZCF_VERSION', '1.8.0.0' ); 12 12 define( 'ZCF_LBPLUGINFILE', __FILE__ ); 13 13 define( 'ZCF_LBPLUGIN_URL', untrailingslashit( plugins_url( '', ZCF_LBPLUGINFILE ) ) );
Note: See TracChangeset
for help on using the changeset viewer.