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
When adding a Relation column of a *-to-one relationship (for example, BelongsTo or HasOne), the value is not shown. Instead, a series of commas is displayed.
Steps to reproduce
Create a controller for a model with a BelongsTo relationship. In the additionalIndexTableColumns() method, add a Relation column for the related model's field:
Description
When adding a
Relation
column of a *-to-one relationship (for example,BelongsTo
orHasOne
), the value is not shown. Instead, a series of commas is displayed.Steps to reproduce
Create a controller for a model with a
BelongsTo
relationship. In theadditionalIndexTableColumns()
method, add aRelation
column for the related model's field:Expected result
I expect it to display the value of the field of the related model.
Actual result
A series of commas is displayed instead. See the "Grouping" column in this image for an example:
![Image](https://private-user-images.githubusercontent.com/2098951/408282537-b4f95fe8-bc18-4726-8341-e94fa6626a8d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NDk1MjAsIm5iZiI6MTczODk0OTIyMCwicGF0aCI6Ii8yMDk4OTUxLzQwODI4MjUzNy1iNGY5NWZlOC1iYzE4LTQ3MjYtODM0MS1lOTRmYTY2MjZhOGQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMTcyNzAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MmUwZDVjZGRhMmY1OTUyNmU2YTc5YTJlYjM3ZGY4NDdjMjc2N2RhMmVmY2E1MDk2YWQ1NTU5NjBiOWMxODM4NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.tE-7dpaHpl9qFj9fI48RwuGI6-R6nEGp1X-ZLsFi86A)
Versions
Twill version: 3.4.1
Laravel version: v10.19.0
PHP version: 8.31
The text was updated successfully, but these errors were encountered: