Closed preBit closed 2 months ago
Hey @preBit thanks for the report 🙏
Just released 6.7.30 with the fix, our tests didn't caught this because we were asserting against hardcoded strings we created using the orderByRaw
.
Let me know if you are still experiencing issues after the update 👍
Cheers
Thanks for the quick fix! 🙌 I tested the update, and the issue is resolved. Everything’s working perfectly now. Appreciate the support! 👍
Cheers
Bug report
What I did
Update from v6.7.23 to v6.7.24 and above
What I expected to happen
OrderBy will work as in previous version
What happened
It works in v6.7.23 but after update to v6.7.24 and above it does not work with an error:
It probably should be something like this:
This is the commit and part that changed: https://github.com/Laravel-Backpack/CRUD/commit/ab969cddf3023d629e51adc11b4aebbd9a2526f6
Specifically from this: https://github.com/Laravel-Backpack/CRUD/commit/ab969cddf3023d629e51adc11b4aebbd9a2526f6#diff-7b3eda922f455b17224d490ff2fb7ea813665afbc56acdcb6b0af29e70e8f9efL179
To: https://github.com/Laravel-Backpack/CRUD/commit/ab969cddf3023d629e51adc11b4aebbd9a2526f6#diff-7b3eda922f455b17224d490ff2fb7ea813665afbc56acdcb6b0af29e70e8f9efR181
Column that has error has specific orderLogic in column definition but the same orderLogic works with v6.7.23 and it does not with v6.7.24 and above
What I've already tried to fix it
Revert to v6.7.23
Is it a bug in the latest version of Backpack?
After I run
composer update backpack/crud
the bug... is it still there?Yes from v6.7.24 and above
Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is: