Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug inserting database field name to filter class in request #21

Open
pitylee opened this issue Jun 10, 2021 · 1 comment
Open

Bug inserting database field name to filter class in request #21

pitylee opened this issue Jun 10, 2021 · 1 comment

Comments

@pitylee
Copy link

pitylee commented Jun 10, 2021

Hi,

There is a bug that I do not understand why, but it inserts the database field to the class of the filter when sending over the filter to Square1\NovaMetrics\Custom*.

Solved by hardcoding the filter to:

            if ($filter->class === 'PosLifestyle\DateRangeFilter\DateRangeFilter_created_at') { // BUG, WHY???
                $filter->class = 'PosLifestyle\DateRangeFilter\DateRangeFilter';
            }
@jonathansc92
Copy link

That's solution worked for me, but i've problems with metrics, when I using that filter date range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants