Changeset 3012278
- Timestamp:
- 12/20/2023 04:47:30 AM (2 years ago)
- Location:
- integrate-dynamics-365-crm
- Files:
-
- 75 added
- 4 edited
-
tags/1.0.5 (added)
-
tags/1.0.5/API (added)
-
tags/1.0.5/API/Authorization.php (added)
-
tags/1.0.5/API/Azure.php (added)
-
tags/1.0.5/API/CustomerMODCRM.php (added)
-
tags/1.0.5/Controller (added)
-
tags/1.0.5/Controller/adminController.php (added)
-
tags/1.0.5/Controller/appConfig.php (added)
-
tags/1.0.5/Controller/cf7Config.php (added)
-
tags/1.0.5/Controller/dataVisualization.php (added)
-
tags/1.0.5/Observer (added)
-
tags/1.0.5/Observer/adminObserver.php (added)
-
tags/1.0.5/Observer/cf7dcrmObserver.php (added)
-
tags/1.0.5/View (added)
-
tags/1.0.5/View/adminView.php (added)
-
tags/1.0.5/View/appConfig.php (added)
-
tags/1.0.5/View/cf7Config.php (added)
-
tags/1.0.5/View/dataVisualization.php (added)
-
tags/1.0.5/View/feedbackForm.php (added)
-
tags/1.0.5/View/supportForm.php (added)
-
tags/1.0.5/Wrappers (added)
-
tags/1.0.5/Wrappers/dbConstants.php (added)
-
tags/1.0.5/Wrappers/dbWrapper.php (added)
-
tags/1.0.5/Wrappers/dcrmWrapper.php (added)
-
tags/1.0.5/Wrappers/pluginConstants.php (added)
-
tags/1.0.5/Wrappers/templateConstants.php (added)
-
tags/1.0.5/Wrappers/templateWrapper.php (added)
-
tags/1.0.5/Wrappers/wpWrapper.php (added)
-
tags/1.0.5/composer.json (added)
-
tags/1.0.5/composer.lock (added)
-
tags/1.0.5/images (added)
-
tags/1.0.5/images/add.svg (added)
-
tags/1.0.5/images/cf7.svg (added)
-
tags/1.0.5/images/check.png (added)
-
tags/1.0.5/images/checked.png (added)
-
tags/1.0.5/images/crown.png (added)
-
tags/1.0.5/images/diamond.png (added)
-
tags/1.0.5/images/dynamics-crm.svg (added)
-
tags/1.0.5/images/gear.gif (added)
-
tags/1.0.5/images/graph.png (added)
-
tags/1.0.5/images/info.png (added)
-
tags/1.0.5/images/insignia.png (added)
-
tags/1.0.5/images/loader.gif (added)
-
tags/1.0.5/images/lock.svg (added)
-
tags/1.0.5/images/message.png (added)
-
tags/1.0.5/images/miniorange.png (added)
-
tags/1.0.5/images/shortcode.svg (added)
-
tags/1.0.5/images/users.svg (added)
-
tags/1.0.5/includes (added)
-
tags/1.0.5/includes/css (added)
-
tags/1.0.5/includes/css/mo_dcrm_alert_css.css (added)
-
tags/1.0.5/includes/css/mo_dcrm_feedback.css (added)
-
tags/1.0.5/includes/css/mo_dcrm_settings.css (added)
-
tags/1.0.5/includes/css/mo_dcrm_table_css.css (added)
-
tags/1.0.5/includes/css/support.css (added)
-
tags/1.0.5/includes/js (added)
-
tags/1.0.5/includes/js/mo_cf7dcrm_setting.js (added)
-
tags/1.0.5/includes/js/mo_dcrm_settings.js (added)
-
tags/1.0.5/integrate-dynamics-365-crm.php (added)
-
tags/1.0.5/readme.txt (added)
-
tags/1.0.5/uninstall.php (added)
-
tags/1.0.5/vendor (added)
-
tags/1.0.5/vendor/autoload.php (added)
-
tags/1.0.5/vendor/composer (added)
-
tags/1.0.5/vendor/composer/ClassLoader.php (added)
-
tags/1.0.5/vendor/composer/InstalledVersions.php (added)
-
tags/1.0.5/vendor/composer/LICENSE (added)
-
tags/1.0.5/vendor/composer/autoload_classmap.php (added)
-
tags/1.0.5/vendor/composer/autoload_namespaces.php (added)
-
tags/1.0.5/vendor/composer/autoload_psr4.php (added)
-
tags/1.0.5/vendor/composer/autoload_real.php (added)
-
tags/1.0.5/vendor/composer/autoload_static.php (added)
-
tags/1.0.5/vendor/composer/installed.json (added)
-
tags/1.0.5/vendor/composer/installed.php (added)
-
tags/1.0.5/vendor/composer/platform_check.php (added)
-
trunk/View/cf7Config.php (modified) (1 diff)
-
trunk/Wrappers/dbWrapper.php (modified) (7 diffs)
-
trunk/integrate-dynamics-365-crm.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
integrate-dynamics-365-crm/trunk/View/cf7Config.php
r2828956 r3012278 158 158 $rows = []; 159 159 foreach ($db_data as $key => $config) { 160 $config = (array) $config; 160 161 $id = $config['id']; 161 162 $CF7_form = '<div Style="color:red;font-weight:500">Pending</div>'; -
integrate-dynamics-365-crm/trunk/Wrappers/dbWrapper.php
r2972531 r3012278 34 34 35 35 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 36 dbDelta( $sql );36 $status = dbDelta( $sql ); 37 37 } 38 38 … … 47 47 48 48 if($has_old_value){ 49 $ wpdb->update( $table, $data, array('id'=>$has_old_value), $format );49 $status = $wpdb->update( $table, $data, array('id'=>$has_old_value), $format ); 50 50 }else{ 51 $ wpdb->insert($table,$data,$format);51 $status = $wpdb->insert($table,$data,$format); 52 52 } 53 54 53 } 55 54 … … 68 67 69 68 $db=$wpdb->dbname; 70 $id = $wpdb->get_var($wpdb->prepare("SELECT id FROM %i ORDER BY id DESC LIMIT 1", $table)); 69 $query = "SELECT id FROM $table ORDER BY id DESC LIMIT %d"; 70 $id = $wpdb->get_var($wpdb->prepare($query,1)); 71 71 $id = $id ? $id : 0; 72 $result = $wpdb->get_results($wpdb->prepare("ALTER TABLE %i AUTO_INCREMENT = %d", $table,$id), ARRAY_A); 72 $query = "ALTER TABLE $table AUTO_INCREMENT = %d"; 73 $result = $wpdb->get_results($wpdb->prepare($query,$id), ARRAY_A); 73 74 74 75 return $id+1; … … 84 85 global $wpdb; 85 86 $table = $wpdb->prefix.dbConstants::CF7_OBJECT_MAPPING_TABLE; 86 $result = $wpdb->get_results( $wpdb->prepare("SELECT id FROM %i where id = %d",$table,$id)); 87 $query = "SELECT id FROM $table where id = %d"; 88 $result = $wpdb->get_results( $wpdb->prepare($query,$id)); 87 89 if(empty($result)) 88 90 return false; … … 95 97 global $wpdb; 96 98 $table = $wpdb->prefix.dbConstants::CF7_OBJECT_MAPPING_TABLE; 97 $result = $wpdb->get_results($wpdb->prepare("SELECT * FROM %i where id = %d",$table,$id), ARRAY_A ); 99 $query = "SELECT * FROM $table where id = %d"; 100 $result = $wpdb->get_results($wpdb->prepare($query,$id), ARRAY_A ); 98 101 99 102 if(empty($result)) … … 107 110 global $wpdb; 108 111 $table = $wpdb->prefix.dbConstants::CF7_OBJECT_MAPPING_TABLE; 109 $ result = $wpdb->get_results($wpdb->prepare("SELECT %i FROM %i where %d = %d",$select, $table,$key, $id), ARRAY_A );110 112 $query = "SELECT $select FROM $table where $key = %d"; 113 $result = $wpdb->get_results($wpdb->prepare($query,$id), ARRAY_A ); 111 114 if(empty($result)) 112 115 return []; … … 122 125 return []; 123 126 124 $result= $wpdb->get_results($wpdb->prepare("SELECT id, cf7_form_id, dynamics_object_id, field_map from %i",$table),ARRAY_A);127 $result= $wpdb->get_results("SELECT id, cf7_form_id, dynamics_object_id, field_map from $table"); 125 128 return $result; 126 129 } -
integrate-dynamics-365-crm/trunk/integrate-dynamics-365-crm.php
r2972531 r3012278 5 5 Plugin URI: https://plugins.miniorange.com/ 6 6 Description: This plugin will allow you to sync CRM Objects like contacts, accounts, leads, etc. between Dynamics 365 Sales and wordpress. 7 Version: 1.0. 47 Version: 1.0.5 8 8 Author: miniOrange 9 9 License: GPLv2 or later … … 24 24 define('MO_DCRM_PLUGIN_FILE',__FILE__); 25 25 define('MO_DCRM_PLUGIN_DIR',__DIR__.DIRECTORY_SEPARATOR); 26 define('PLUGIN_VERSION','1.0. 4');26 define('PLUGIN_VERSION','1.0.5'); 27 27 28 28 class MOdcrm{ -
integrate-dynamics-365-crm/trunk/readme.txt
r2972531 r3012278 4 4 Tags: crm, dynamics 365, dynamics crm, forms, Microsoft 5 5 Requires at least: 5.5 6 Tested up to: 6. 36 Tested up to: 6.4 7 7 Requires PHP: 7.0 or higher 8 Stable tag: 1.0. 48 Stable tag: 1.0.5 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 82 82 == ChangeLog == 83 83 84 = 1.0.5 = 85 * Compatibility with WordPress 6.4 86 * Bug fix for database operations related to mapping functionality. 87 84 88 = 1.0.4 = 85 89 * BugFix for contact form 7 mapping table … … 102 106 == Upgrade Notice == 103 107 108 = 1.0.5 = 109 * Compatibility with WordPress 6.4 110 * Bug fix for database operations related to mapping functionality. 111 104 112 = 1.0.4 = 105 113 * BugFix for contact form 7 mapping table
Note: See TracChangeset
for help on using the changeset viewer.