Skip to content

Bug: HTML Table Class fails with table column named 'data'. #8051

Description

@mactimes

PHP Version

8.2

CodeIgniter4 Version

4.4.1

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

Linux

Which server did you use?

apache

Database

mariadb Ver 15.1 Distrib 10.11.4-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper

What happened?

HTML Table Class produces bugged output as follows:

Data do Orçamento
2023-10-16 21:12:29
2023-10-16 21:12:29
2023-10-16 21:12:29

Steps to Reproduce

Serve Model->asArray()->findAll() to generate() method of HTML Table class when source table contains column named "data".

Expected Output

Codigo OrçamentoData do OrçamentoTipo de DescontoValor do Desconto
codigo12023-10-16 21:50:08NENHUM
codigo22023-10-16 21:50:08REAL10.00
codigo32023-10-16 21:50:08PERCENTUAL10.00

Anything else?

ci4-html_table_class-bug_report

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

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions