Which package is affected?
Core
Version
4.x
What happened?
I added a list column from an extension with the admin.list.extendColumns event. I used the example from the documentation, section "Extending column definitions": https://tastyigniter.com/docs/extend/lists#extending-column-definitions
Steps to reproduce on a fresh install:
- Register the event listener from the documentation example:
Event::listen('admin.list.extendColumns', function ($widget) {
$widget->addColumns([
'my_column' => [
'label' => 'My Column',
],
]);
});
- Open the related admin list page. The column shows correctly.
- Open the list setup panel. Remove "My Column". Save. The page continues to work.
- Open the list setup panel again. Select "My Column". Save.
- The save request returns the error. The page then shows error 500 on each load for this admin session. The error is: "Invalid column name used: my_column. Must be included in list columns definition."
What did you expect to happen?
The page loads and shows the saved layout with the extension column.
What browser are you seeing the problem on?
No response
Relevant log output
Which package is affected?
Core
Version
4.x
What happened?
I added a list column from an extension with the
admin.list.extendColumnsevent. I used the example from the documentation, section "Extending column definitions": https://tastyigniter.com/docs/extend/lists#extending-column-definitionsSteps to reproduce on a fresh install:
What did you expect to happen?
The page loads and shows the saved layout with the extension column.
What browser are you seeing the problem on?
No response
Relevant log output