Changeset 2972531
- Timestamp:
- 09/28/2023 08:23:40 AM (2 years ago)
- Location:
- integrate-dynamics-365-crm
- Files:
-
- 75 added
- 2 deleted
- 3 edited
-
tags/1.0.4 (added)
-
tags/1.0.4/API (added)
-
tags/1.0.4/API/Authorization.php (added)
-
tags/1.0.4/API/Azure.php (added)
-
tags/1.0.4/API/CustomerMODCRM.php (added)
-
tags/1.0.4/Controller (added)
-
tags/1.0.4/Controller/adminController.php (added)
-
tags/1.0.4/Controller/appConfig.php (added)
-
tags/1.0.4/Controller/cf7Config.php (added)
-
tags/1.0.4/Controller/dataVisualization.php (added)
-
tags/1.0.4/Observer (added)
-
tags/1.0.4/Observer/adminObserver.php (added)
-
tags/1.0.4/Observer/cf7dcrmObserver.php (added)
-
tags/1.0.4/View (added)
-
tags/1.0.4/View/adminView.php (added)
-
tags/1.0.4/View/appConfig.php (added)
-
tags/1.0.4/View/cf7Config.php (added)
-
tags/1.0.4/View/dataVisualization.php (added)
-
tags/1.0.4/View/feedbackForm.php (added)
-
tags/1.0.4/View/supportForm.php (added)
-
tags/1.0.4/Wrappers (added)
-
tags/1.0.4/Wrappers/dbConstants.php (added)
-
tags/1.0.4/Wrappers/dbWrapper.php (added)
-
tags/1.0.4/Wrappers/dcrmWrapper.php (added)
-
tags/1.0.4/Wrappers/pluginConstants.php (added)
-
tags/1.0.4/Wrappers/templateConstants.php (added)
-
tags/1.0.4/Wrappers/templateWrapper.php (added)
-
tags/1.0.4/Wrappers/wpWrapper.php (added)
-
tags/1.0.4/composer.json (added)
-
tags/1.0.4/composer.lock (added)
-
tags/1.0.4/images (added)
-
tags/1.0.4/images/add.svg (added)
-
tags/1.0.4/images/cf7.svg (added)
-
tags/1.0.4/images/check.png (added)
-
tags/1.0.4/images/checked.png (added)
-
tags/1.0.4/images/crown.png (added)
-
tags/1.0.4/images/diamond.png (added)
-
tags/1.0.4/images/dynamics-crm.svg (added)
-
tags/1.0.4/images/gear.gif (added)
-
tags/1.0.4/images/graph.png (added)
-
tags/1.0.4/images/info.png (added)
-
tags/1.0.4/images/insignia.png (added)
-
tags/1.0.4/images/loader.gif (added)
-
tags/1.0.4/images/lock.svg (added)
-
tags/1.0.4/images/message.png (added)
-
tags/1.0.4/images/miniorange.png (added)
-
tags/1.0.4/images/shortcode.svg (added)
-
tags/1.0.4/images/users.svg (added)
-
tags/1.0.4/includes (added)
-
tags/1.0.4/includes/css (added)
-
tags/1.0.4/includes/css/mo_dcrm_alert_css.css (added)
-
tags/1.0.4/includes/css/mo_dcrm_feedback.css (added)
-
tags/1.0.4/includes/css/mo_dcrm_settings.css (added)
-
tags/1.0.4/includes/css/mo_dcrm_table_css.css (added)
-
tags/1.0.4/includes/css/support.css (added)
-
tags/1.0.4/includes/js (added)
-
tags/1.0.4/includes/js/mo_cf7dcrm_setting.js (added)
-
tags/1.0.4/includes/js/mo_dcrm_settings.js (added)
-
tags/1.0.4/integrate-dynamics-365-crm.php (added)
-
tags/1.0.4/readme.txt (added)
-
tags/1.0.4/uninstall.php (added)
-
tags/1.0.4/vendor (added)
-
tags/1.0.4/vendor/autoload.php (added)
-
tags/1.0.4/vendor/composer (added)
-
tags/1.0.4/vendor/composer/ClassLoader.php (added)
-
tags/1.0.4/vendor/composer/InstalledVersions.php (added)
-
tags/1.0.4/vendor/composer/LICENSE (added)
-
tags/1.0.4/vendor/composer/autoload_classmap.php (added)
-
tags/1.0.4/vendor/composer/autoload_namespaces.php (added)
-
tags/1.0.4/vendor/composer/autoload_psr4.php (added)
-
tags/1.0.4/vendor/composer/autoload_real.php (added)
-
tags/1.0.4/vendor/composer/autoload_static.php (added)
-
tags/1.0.4/vendor/composer/installed.json (added)
-
tags/1.0.4/vendor/composer/installed.php (added)
-
tags/1.0.4/vendor/composer/platform_check.php (added)
-
trunk/Wrappers/dbWrapper.php (modified) (6 diffs)
-
trunk/Wrappers/sharepointWrapper.php (deleted)
-
trunk/Wrappers/uninstall.php (deleted)
-
trunk/integrate-dynamics-365-crm.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
integrate-dynamics-365-crm/trunk/Wrappers/dbWrapper.php
r2819092 r2972531 24 24 $sql = "CREATE TABLE $table_name ( 25 25 id mediumint(9) NOT NULL AUTO_INCREMENT, 26 cf7_form_id textNOT NULL,26 cf7_form_id varchar(200) NOT NULL, 27 27 form_fields text NOT NULL, 28 28 dynamics_object_id text NOT NULL, … … 68 68 69 69 $db=$wpdb->dbname; 70 $result=$wpdb->get_results($wpdb->prepare("SELECT `AUTO_INCREMENT` FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = %s AND TABLE_NAME = %s",$db,$table),ARRAY_A); 71 $next_id=$result[0]['AUTO_INCREMENT']; 72 return $next_id; 70 $id = $wpdb->get_var($wpdb->prepare("SELECT id FROM %i ORDER BY id DESC LIMIT 1", $table)); 71 $id = $id ? $id : 0; 72 $result = $wpdb->get_results($wpdb->prepare("ALTER TABLE %i AUTO_INCREMENT = %d", $table,$id), ARRAY_A); 73 74 return $id+1; 73 75 } 74 76 … … 82 84 global $wpdb; 83 85 $table = $wpdb->prefix.dbConstants::CF7_OBJECT_MAPPING_TABLE; 84 $result = $wpdb->get_results( $wpdb->prepare("SELECT id FROM % 5s where id = %s",$table,$id));86 $result = $wpdb->get_results( $wpdb->prepare("SELECT id FROM %i where id = %d",$table,$id)); 85 87 if(empty($result)) 86 88 return false; … … 93 95 global $wpdb; 94 96 $table = $wpdb->prefix.dbConstants::CF7_OBJECT_MAPPING_TABLE; 95 $result = $wpdb->get_results($wpdb->prepare("SELECT * FROM % 5s where id = %s",$table,$id), ARRAY_A );97 $result = $wpdb->get_results($wpdb->prepare("SELECT * FROM %i where id = %d",$table,$id), ARRAY_A ); 96 98 97 99 if(empty($result)) … … 105 107 global $wpdb; 106 108 $table = $wpdb->prefix.dbConstants::CF7_OBJECT_MAPPING_TABLE; 107 $result = $wpdb->get_results($wpdb->prepare("SELECT % 5s FROM %5s where %5s = %s",$select, $table,$key, $id), ARRAY_A );109 $result = $wpdb->get_results($wpdb->prepare("SELECT %i FROM %i where %d = %d",$select, $table,$key, $id), ARRAY_A ); 108 110 109 111 if(empty($result)) … … 120 122 return []; 121 123 122 $result=$wpdb->get_results($wpdb->prepare("SELECT id, cf7_form_id, dynamics_object_id, field_map from % 5s",$table),ARRAY_A);124 $result=$wpdb->get_results($wpdb->prepare("SELECT id, cf7_form_id, dynamics_object_id, field_map from %i",$table),ARRAY_A); 123 125 return $result; 124 126 } -
integrate-dynamics-365-crm/trunk/integrate-dynamics-365-crm.php
r2828956 r2972531 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. 37 Version: 1.0.4 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. 3');26 define('PLUGIN_VERSION','1.0.4'); 27 27 28 28 class MOdcrm{ -
integrate-dynamics-365-crm/trunk/readme.txt
r2828956 r2972531 4 4 Tags: crm, dynamics 365, dynamics crm, forms, Microsoft 5 5 Requires at least: 5.5 6 Tested up to: 6. 16 Tested up to: 6.3 7 7 Requires PHP: 7.0 or higher 8 Stable tag: 1.0. 38 Stable tag: 1.0.4 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.4 = 85 * BugFix for contact form 7 mapping table 86 84 87 = 1.0.3 = 85 88 * Added data visulization tab to embed dynamics object into pages. … … 99 102 == Upgrade Notice == 100 103 104 = 1.0.4 = 105 * BugFix for contact form 7 mapping table 106 101 107 = 1.0.3 = 102 108 * Added data visulization tab to embed dynamics object into pages.
Note: See TracChangeset
for help on using the changeset viewer.