Skip to content

Boolean order meta values are displayed ambiguously in Additional Information #2544

Description

@Huncsuga
  • Lunar version: 1.5.0-beta.6
  • Laravel Version: 12.62.0
  • PHP Version: 8.4.22
  • Database Driver & Version: MariaDB 10.11.18

Expected Behaviour:

Boolean values stored in an order's meta data should be displayed clearly in the Additional Information section of the admin panel.

For example, true and false values could be displayed as Yes and No, or their localized equivalents. This would make the values easier to understand for non-technical shop administrators.

Actual Behaviour:

When a boolean value is stored in an order's meta data:

  • true is displayed as 1.
  • false is displayed as an empty value, with only the key being visible.

The empty value shown for false can easily be mistaken for missing data. Additionally, displaying true as 1 may not be clear to shop owners and other non-technical users who manage the admin panel.

Image Image

Steps To Reproduce:

  1. Store both a true and a false boolean value in an order's meta data. For example, the meta data stored in the database may look like this:

    {
        "express_shipping": true,
        "shipping_zone": "UK"
    }
  2. Open the order in the Lunar admin panel.

  3. Navigate to the Additional Information section.

  4. Observe that the true value is displayed as 1, while the false value is displayed as an empty value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions