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

Sortby tv with two '-' brakes output #340

Open
Extrabash opened this issue May 20, 2022 · 1 comment
Open

Sortby tv with two '-' brakes output #340

Extrabash opened this issue May 20, 2022 · 1 comment

Comments

@Extrabash
Copy link

Extrabash commented May 20, 2022

Сообщение об ошибке / Error message

Empty Array

Шаг для воспроизведения / Step to play

[[pdoResources?
    &parents=206
    &depth=0
    &limit=99
    &tpl=end-event
    &includeTVs=event-image, event-date, event-date-from, event-date-to
    &sortby={"event-date-from":"DESC"}
    &showLog=`1`
]]
output: Sorted by TVevent-date.value-from, DESC
   ...
    &includeTVs=event-image, event-date, event-date_from, event-date_to
    &sortby={"event-date_from":"DESC"}
    &showLog=`1`
]]
output: Sorted by CAST(TVevent-date_from.value AS DATETIME), DESC

Наблюдаемое поведение / Observed behavior

Empty output array

Ожидаемое поведение / Expected behavior

List all pages sorted by date tv.

Environment

MODX Revo 2.6.4
PDOTools 2.13.2-pl

@Extrabash Extrabash added the bug label May 20, 2022
@sergant210 sergant210 removed the bug label Jul 25, 2022
@sergant210
Copy link
Member

Try to update MODX.

P.S. Use naming convention.

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

No branches or pull requests

2 participants