Changeset 2715204
- Timestamp:
- 04/27/2022 04:28:17 AM (4 years ago)
- Location:
- prosolution-wp-client/trunk
- Files:
-
- 7 edited
-
README.txt (modified) (2 diffs)
-
admin/class-prosolwpclient-admin.php (modified) (2 diffs)
-
admin/js/prosolwpclient-setting.js (modified) (1 diff)
-
includes/class-prosolwpclient-activator.php (modified) (2 diffs)
-
includes/class-prosolwpclient-table-helper.php (modified) (2 diffs)
-
includes/class-setting.php (modified) (3 diffs)
-
prosolwpclient.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
prosolution-wp-client/trunk/README.txt
r2714610 r2715204 6 6 Tested up to: 4.9.5 7 7 Requires PHP: 5.6 8 Stable tag: 1.8. 08 Stable tag: 1.8.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 66 66 67 67 == Changelog == 68 69 = 1.8.1 = 70 * Fix synchronize table 'Jobs' to remove the limit how many jobs will return 71 * Fix table 'Jobs' is not created when activate plugin 68 72 69 73 = 1.8.0 = -
prosolution-wp-client/trunk/admin/class-prosolwpclient-admin.php
r2714610 r2715204 387 387 if ( is_array( $header_info ) && sizeof( $header_info ) > 0 && $is_api_setup ) { 388 388 $response_data = wp_remote_get( $urlval . '/go/api/system/list/maritalstatus', array('headers'=>$header_info)); 389 } 389 } 390 390 391 391 if ( $is_api_setup && !is_wp_error( $response_data ) ) { … … 401 401 } else { //header is correct 402 402 $check_err=json_decode( $response_data['body'] ) -> ERROR ; // key object is case-sensitive 403 if ($check_err){ 403 $check_err2=json_decode( $response_data['response']['code']) ; // key object is case-sensitive 404 405 if ($check_err || $check_err2 != "200"){ 404 406 $output['error'] = 1; 405 407 $output['message'] = esc_html__( 'response is invalid', 'prosolwpclient' ); 406 //var_dump($response_data['body']);407 408 } else { 408 409 $output['error'] = 0; -
prosolution-wp-client/trunk/admin/js/prosolwpclient-setting.js
r2714610 r2715204 616 616 button_view.html(data.message); 617 617 button_view.removeClass('hidden'); 618 618 619 619 if (parseInt(data.error) == 1) { 620 620 button_view.addClass('notvalid'); -
prosolution-wp-client/trunk/includes/class-prosolwpclient-activator.php
r2714610 r2715204 121 121 //create table for prosolution jobs, project 1440 122 122 $table_ps_jobs_sql = "CREATE TABLE $table_ps_jobs ( 123 jobid varchar( 255) NOT NULL,123 jobid varchar(190) NOT NULL, 124 124 jobname varchar(255) NOT NULL, 125 125 jobstartdate varchar(255) NOT NULL, … … 204 204 textfield_19 longtext NOT NULL, 205 205 textfield_20 longtext NOT NULL, 206 site_id varchar( 255) NOT NULL DEFAULT '0',207 PRIMARY KEY (jobid,site_id)206 site_id varchar(190) NOT NULL DEFAULT '0', 207 PRIMARY KEY (jobid,site_id) 208 208 ) "; 209 209 -
prosolution-wp-client/trunk/includes/class-prosolwpclient-table-helper.php
r2714610 r2715204 132 132 $api_body = array( "param" => json_encode( $safe_data )); 133 133 134 $response = wp_remote_post( $api_config['api_url'] .''. $api_location .'joblist /', array(134 $response = wp_remote_post( $api_config['api_url'] .''. $api_location .'joblist?limitrows=500', array( 135 135 'headers' => $header_info, 136 136 'body' => $api_body … … 256 256 257 257 if($is_api_setup){ 258 $response = wp_remote_post( $api_config['api_url'] .''. $api_location .'joblist /', array(258 $response = wp_remote_post( $api_config['api_url'] .''. $api_location .'joblist?limitrows=500', array( 259 259 'headers' => $header_info, 260 260 'body' => $api_body -
prosolution-wp-client/trunk/includes/class-setting.php
r2714610 r2715204 118 118 } else { 119 119 $section_default_value = $this->proSol_getMissingDefaultValueBySection( $section['id'] ); 120 121 if(array_key_exists( $issite.'api_pass',$section_default_value)){120 121 if(array_key_exists( 'api_pass',$section_default_value)){ 122 122 // we need to use this because sync always update the option 123 123 $api_confog_arr=array(); … … 1051 1051 } 1052 1052 1053 $html = sprintf( '<input type="password" class="%3$s %1$s-text" id="%2$s[%3$s]" name="%2$s[%3$s]" />', $size, $args['section'], $args['id']);1053 $html = sprintf( '<input type="password" autocomplete="new-password" class="%3$s %1$s-text" id="%2$s[%3$s]" name="%2$s[%3$s]" />', $size, $args['section'], $args['id']); 1054 1054 $html .= sprintf( '<input type="hidden" class="%1$s-text" id="prosolwpclient_api_config[%3$soldapi_pass]" name="prosolwpclient_api_config[%3$soldapi_pass]" value="%2$s"/>', $size, $value,$passsite ); 1055 1055 $html .= $this->proSol_get_field_description( $args ); … … 1358 1358 <?php foreach ( $this->settings_sections as $form ) { ?> 1359 1359 <div id="<?php echo $form['id']; ?>" class="group" style="display: none;"> 1360 <form method="post" action="options.php" class="prosolsettingapiform" >1360 <form method="post" action="options.php" class="prosolsettingapiform" > 1361 1361 <?php 1362 1362 do_action( 'prosolwpclient_setting_top_' . $form['id'], $form ); -
prosolution-wp-client/trunk/prosolwpclient.php
r2714610 r2715204 17 17 * Plugin URI: https://prosolution.com/produkte-und-services/workexpert.html 18 18 * Description: WordPress client for ProSolution 19 * Version: 1.8. 019 * Version: 1.8.1 20 20 * Author: ProSolution 21 21 * Author URI: https://www.prosolution.com … … 39 39 40 40 defined('PROSOLWPCLIENT_PLUGIN_NAME') or define('PROSOLWPCLIENT_PLUGIN_NAME', 'prosolwpclient'); 41 defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.8. 0');41 defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.8.1'); 42 42 defined('PROSOLWPCLIENT_BASE_NAME') or define('PROSOLWPCLIENT_BASE_NAME', plugin_basename(__FILE__)); 43 43 defined('PROSOLWPCLIENT_ROOT_PATH') or define('PROSOLWPCLIENT_ROOT_PATH', plugin_dir_path(__FILE__));
Note: See TracChangeset
for help on using the changeset viewer.