You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
mysql 5.6
What happened?
When employing the view_cell function in CodeIgniter 4 with the provided InputCell class, a bug is observed where the test2 cell erroneously inherits the placeholder value from the preceding test1 cell, even when no explicit placeholder value is provided for test2.
Steps to Reproduce
Implement an InputCell class using the provided code.
Utilize the view_cell function in a view file (profil.php) to render two cells, namely test1 and test2.
Omit providing a placeholder value for test2.
app\Cells\InputCell.php
<?php
namespace App\Cells;
use CodeIgniter\View\Cells\Cell;
class InputCell extends Cell
{
public $type;
public $name;
public $id;
public $label;
public $placeholder;
public $required = false;
}
Please use a class name with namespace: App\Cells\InputCell or InputCell::class - otherwise we will use Factories under the hood which will always return a shared object for the same class name.
PHP Version
8.1
CodeIgniter4 Version
v4.4.3
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
mysql 5.6
What happened?
When employing the view_cell function in CodeIgniter 4 with the provided InputCell class, a bug is observed where the test2 cell erroneously inherits the placeholder value from the preceding test1 cell, even when no explicit placeholder value is provided for test2.
Steps to Reproduce
Implement an InputCell class using the provided code.
Utilize the view_cell function in a view file (profil.php) to render two cells, namely test1 and test2.
Omit providing a placeholder value for test2.
app\Cells\InputCell.php
app\Cells\input.php
app\Views\dashboard\biodata\profil.php
Expected Output
The test2 cell should display with an empty placeholder or the default placeholder value specified in the InputCell class.
Anything else?
No response
The text was updated successfully, but these errors were encountered: