Skip to content

PHP 8.1 compatibility #12

Description

@jjdunn

problem when calculating Column IDs for sheet with more than 26 columns, e.g. "AA", "AB"....

2023/08/26 19:47:25[244.185.41.121] [error] [php] Implicit conversion
from float 65.03846153846153 to int loses precision
(C:\web\prod\app\extensions\EExcelView.php:458)

fix:

@@ -460 +460,2 @@ class EExcelView extends CGridView
-            return ($this->columnName($index / 26)).($this->columnName($index%26 + 1));
+            // JJD 8/27/23 must pass int to columnName()
+            return ($this->columnName((int)($index / 26))).($this->columnName($index%26 + 1));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions