Plugin Directory

Changeset 2715204


Ignore:
Timestamp:
04/27/2022 04:28:17 AM (4 years ago)
Author:
prosolution
Message:

1.8.1

  • Fix synchronize table 'Jobs' to remove the limit how many jobs will return
  • Fix table 'Jobs' is not created when activate plugin
Location:
prosolution-wp-client/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • prosolution-wp-client/trunk/README.txt

    r2714610 r2715204  
    66Tested up to: 4.9.5
    77Requires PHP: 5.6
    8 Stable tag: 1.8.0
     8Stable tag: 1.8.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666
    6767== 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
    6872
    6973= 1.8.0 =
  • prosolution-wp-client/trunk/admin/class-prosolwpclient-admin.php

    r2714610 r2715204  
    387387            if ( is_array( $header_info ) && sizeof( $header_info ) > 0 && $is_api_setup ) {
    388388                $response_data = wp_remote_get( $urlval . '/go/api/system/list/maritalstatus', array('headers'=>$header_info));
    389             } 
     389            }
    390390           
    391391            if ( $is_api_setup && !is_wp_error( $response_data ) ) {
     
    401401                } else { //header is correct
    402402                    $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"){
    404406                        $output['error']    = 1;
    405407                        $output['message']  = esc_html__( 'response is invalid', 'prosolwpclient' );
    406                         //var_dump($response_data['body']);
    407408                    } else {
    408409                        $output['error']    = 0;
  • prosolution-wp-client/trunk/admin/js/prosolwpclient-setting.js

    r2714610 r2715204  
    616616                        button_view.html(data.message);
    617617                        button_view.removeClass('hidden');
    618 
     618                       
    619619                        if (parseInt(data.error) == 1) {
    620620                            button_view.addClass('notvalid');
  • prosolution-wp-client/trunk/includes/class-prosolwpclient-activator.php

    r2714610 r2715204  
    121121            //create table for prosolution jobs, project 1440
    122122            $table_ps_jobs_sql = "CREATE TABLE $table_ps_jobs (
    123               jobid varchar(255) NOT NULL,
     123              jobid varchar(190) NOT NULL,
    124124              jobname varchar(255) NOT NULL,
    125125              jobstartdate varchar(255) NOT NULL,
     
    204204              textfield_19 longtext NOT NULL,
    205205              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)
    208208            ) ";
    209209           
  • prosolution-wp-client/trunk/includes/class-prosolwpclient-table-helper.php

    r2714610 r2715204  
    132132                    $api_body  = array( "param" => json_encode( $safe_data ));
    133133
    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(
    135135                        'headers'        => $header_info,
    136136                        'body'           => $api_body
     
    256256
    257257                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(
    259259                        'headers'        => $header_info,
    260260                        'body'           => $api_body
  • prosolution-wp-client/trunk/includes/class-setting.php

    r2714610 r2715204  
    118118                    } else {                           
    119119                        $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)){
    122122                            // we need to use this because sync always update the option
    123123                            $api_confog_arr=array();
     
    10511051                }
    10521052               
    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']);
    10541054                $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 );
    10551055                $html .= $this->proSol_get_field_description( $args );
     
    13581358                    <?php foreach ( $this->settings_sections as $form ) { ?>
    13591359                        <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" >
    13611361                                <?php
    13621362                                    do_action( 'prosolwpclient_setting_top_' . $form['id'], $form );
  • prosolution-wp-client/trunk/prosolwpclient.php

    r2714610 r2715204  
    1717     * Plugin URI:        https://prosolution.com/produkte-und-services/workexpert.html
    1818     * Description:       WordPress client for ProSolution
    19      * Version:           1.8.0
     19     * Version:           1.8.1
    2020     * Author:            ProSolution
    2121     * Author URI:        https://www.prosolution.com
     
    3939
    4040    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');
    4242    defined('PROSOLWPCLIENT_BASE_NAME') or define('PROSOLWPCLIENT_BASE_NAME', plugin_basename(__FILE__));
    4343    defined('PROSOLWPCLIENT_ROOT_PATH') or define('PROSOLWPCLIENT_ROOT_PATH', plugin_dir_path(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.