Skip to content

Backend order detail page fails to render #7

@Detzler

Description

@Detzler

Hi,

In vendor/lengow/module-connector/Block/Adminhtml/Sales/Order/Tab/Info.php::getOrderImportedDate there is a dependency on the order status history. The first item of the status history returns the orderImportedDate. The problem is that there can be orders which don't have any status history items. The method fails on the return type. It returns null but allowed is only string.

image

TypeError: Return value of Lengow\Connector\Block\Adminhtml\Sales\Order\Tab\Info::getOrderImportedDate() must be of the type string, null returned in /var/www/share/production/src/vendor/lengow/module-connector/Block/Adminhtml/Sales/Order/Tab/Info.php

@benjaminlgw

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions