cuba-platform / reports

CUBA Reports Addon
https://www.cuba-platform.com/
Apache License 2.0
9 stars 4 forks source link

Role.type is shown empty for the report type "Report for list of entities, selected by query" #246

Closed MikhailSilk closed 4 years ago

MikhailSilk commented 4 years ago

Environment

Description of the bug or enhancement

  1. Create any role
  2. Start to create a new report for the Role entity
  3. Select the report type "Report for list of entities, selected by query" and click Next
  4. Select the Role.name and Role.type attribute and save the report
  5. Run the report for the created role from the previous step
NikitaShchienko commented 4 years ago

Fixed in cuba-platform/reports#237

NikitaShchienko commented 4 years ago

In the given example, the RoleType field is empty, because the null value is stored in the database.

To correctly display this field, you must create a formatter:

image.png