Plugin Directory

Changeset 3007573


Ignore:
Timestamp:
12/09/2023 09:00:50 AM (2 years ago)
Author:
tkc49
Message:

Update to version 1.13.1 from GitHub

Location:
import-kintone
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • import-kintone/tags/1.13.1/admin/class-admin.php

    r2972625 r3007573  
    277277
    278278        $kintone_data['records'] = array();
    279 
    280         $offset             = 0;
     279        $last_id = 0;
    281280        $reacquisition_flag = true;
    282281
    283282        while ( $reacquisition_flag ) {
    284283
    285             $query = apply_filters( 'import_kintone_change_bulk_update_query', 'order by $id asc limit 500 offset ' . $offset );
     284            $query = apply_filters( 'import_kintone_change_bulk_update_query', '$id > ' . $last_id . ' order by $id asc limit 500');
    286285
    287286            $url        = 'https://' . get_option( 'kintone_to_wp_kintone_url' ) . '/k/v1/records.json?app=' . get_option( 'kintone_to_wp_target_appid' ) . '&query=' . $query;
     
    290289            $kintone_data['records'] = array_merge( $kintone_data['records'], $retun_data['records'] );
    291290
    292             if ( count( $kintone_data['records'] ) < 500 ) {
     291            if ( count( $retun_data['records'] ) < 500 ) {
    293292                $reacquisition_flag = false;
    294293            } else {
    295                 $offset = $offset + 500;
     294                $last_id = end($retun_data['records'])['$id']['value'];
    296295            }
    297296        }
  • import-kintone/tags/1.13.1/publish-kintone-data.php

    r2972625 r3007573  
    44 * Plugin URI:
    55 * Description: The data of kintone can be reflected on WordPress.
    6  * Version:     1.13.0
     6 * Version:     1.13.1
    77 * Author:      Takashi Hosoya
    88 * Author URI:  http://ht79.info/
  • import-kintone/tags/1.13.1/readme.txt

    r2972625 r3007573  
    33Tags: cybozu, kintone, crm, database, custom field
    44Requires at least: 4.9
    5 Tested up to: 6.1.1
    6 Stable tag: 1.13.0
     5Tested up to: 6.4.2
     6Stable tag: 1.13.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060
    6161== Changelog ==
     62
     63= 1.13.1 (2023-12-09) =
     64* [Fixed] Fixed bulk update issue.
    6265
    6366= 1.13.0 (2023-09-28) =
  • import-kintone/trunk/admin/class-admin.php

    r2972625 r3007573  
    277277
    278278        $kintone_data['records'] = array();
    279 
    280         $offset             = 0;
     279        $last_id = 0;
    281280        $reacquisition_flag = true;
    282281
    283282        while ( $reacquisition_flag ) {
    284283
    285             $query = apply_filters( 'import_kintone_change_bulk_update_query', 'order by $id asc limit 500 offset ' . $offset );
     284            $query = apply_filters( 'import_kintone_change_bulk_update_query', '$id > ' . $last_id . ' order by $id asc limit 500');
    286285
    287286            $url        = 'https://' . get_option( 'kintone_to_wp_kintone_url' ) . '/k/v1/records.json?app=' . get_option( 'kintone_to_wp_target_appid' ) . '&query=' . $query;
     
    290289            $kintone_data['records'] = array_merge( $kintone_data['records'], $retun_data['records'] );
    291290
    292             if ( count( $kintone_data['records'] ) < 500 ) {
     291            if ( count( $retun_data['records'] ) < 500 ) {
    293292                $reacquisition_flag = false;
    294293            } else {
    295                 $offset = $offset + 500;
     294                $last_id = end($retun_data['records'])['$id']['value'];
    296295            }
    297296        }
  • import-kintone/trunk/publish-kintone-data.php

    r2972625 r3007573  
    44 * Plugin URI:
    55 * Description: The data of kintone can be reflected on WordPress.
    6  * Version:     1.13.0
     6 * Version:     1.13.1
    77 * Author:      Takashi Hosoya
    88 * Author URI:  http://ht79.info/
  • import-kintone/trunk/readme.txt

    r2972625 r3007573  
    33Tags: cybozu, kintone, crm, database, custom field
    44Requires at least: 4.9
    5 Tested up to: 6.1.1
    6 Stable tag: 1.13.0
     5Tested up to: 6.4.2
     6Stable tag: 1.13.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060
    6161== Changelog ==
     62
     63= 1.13.1 (2023-12-09) =
     64* [Fixed] Fixed bulk update issue.
    6265
    6366= 1.13.0 (2023-09-28) =
Note: See TracChangeset for help on using the changeset viewer.