Skip to content

Undefined property: OpenAdmin\Admin\Grid\Filter\Presenter\Select::$label #201

@zhouitpro

Description

@zhouitpro

this is my code

$filter->equal('customer', trans('Customer'))->select(function($id) {
            $customer = Customer::find($id);
            if ($customer) {
                return [
                    $customer->customer_id => $customer->username,
                ];
            }
        })->ajax('/api/customer/search');

error file: vendor/open-admin-org/open-admin/src/Grid/Filter/Presenter/Select.php: 187

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions