Plugin Directory

Changeset 3229983


Ignore:
Timestamp:
01/27/2025 10:06:45 PM (14 months ago)
Author:
wibergsweb
Message:

Include correct columns when fetching Excel-files to.

Location:
csv-to-html
Files:
890 added
2 edited

Legend:

Unmodified
Added
Removed
  • csv-to-html/trunk/csvtohtml.php

    r3228381 r3229983  
    44Plugin URI: http://www.wibergsweb.se/plugins/csvtohtml
    55Description:Display/edit/synchronize csv-file(s) dynamically into a html-table
    6 Version: 3.34
     6Version: 3.35
    77Author: Wibergs Web
    88Author URI: http://www.wibergsweb.se/
     
    3434    private $filter_operators;                      //Used for is_row_applicable and multfilters
    3535    private $allowed_html;
    36     private $use_zero_basedindex = true;            //This is need together with PHPSpreadsheet because it uses 1-based-index instead of normally 0-based index
    3736
    3837    /**
     
    22722271        foreach ( $ex_cols as $c )
    22732272        {
    2274             $use_cols[] = $this->use_zero_basedindex ? (int)($c - 1) : (int)$c;
     2273            $use_cols[] = (int)($c - 1);
    22752274        }
    22762275
     
    35623561                        //This is an Excel-file, convert it to csv before moving on
    35633562                        if ( stristr( $file, '.xlsx' ) !== false )
    3564                         {         
    3565                             //When false, it uses 1-based index as PHPSpreedsheet wants
    3566                             //This is important to keep track of columns (hiding, including etc)
    3567                             $this->use_zero_basedindex = false;                                                         
     3563                        {                                                                 
    35683564                            $file = $this->convert_from_excel( $file, $selected_sheets );
    35693565                        }
  • csv-to-html/trunk/readme.txt

    r3228381 r3229983  
    66Requires at least: 3.0.1
    77Tested up to: 6.7
    8 Stable Tag: 3.34
     8Stable Tag: 3.35
    99License: GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    140140
    141141== Changelog ==
     142= 3.35 = (2025-01-27)
     143Bugfix include correct columns when fetching Excel-files
     144
    142145= 3.34 = (2025-01-25)
    143146Bugfix headers not showing
Note: See TracChangeset for help on using the changeset viewer.