Skip to content

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

@mactimes

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

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