[6.x]: Element index sorted by a custom field ignores the sort direction
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Reproduce this on a 6.x-dev entries index with a plain text field filled on some entries, then inspect the handling of sort[0][field]=fieldInstance:<uid> and sort[0][direction]. Compare ascending and descending results; done means descending returns the reverse order of ascending, while sorting by title or postDate remains unaffected.
索引モデルが issue の本文から書いたものです。
説明
What happened?
Steps to reproduce
- Open an entries index whose entry type has a plain text field that is filled in on some entries (here a "Director" field).
- Open View and set Sort by to that field.
- Switch the direction between ascending and descending.
Expected behavior
Descending lists the rows in the reverse order of ascending.
Actual behavior
Both directions return the same rows in the same (ascending) order. Requesting sort[0][field]=fieldInstance:<uid>&sort[0][direction]=desc returns the same rows as asc: empty values first, then A to Z. Sorting by title or postDate is not affected.
Craft CMS version
6.x-dev @ 420552c31b
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
- 主要言語
- PHP
- スター
- 3.6k
- フォーク
- 712
- 平均マージ
- 13時間 8分
- マージ済み PR(30日)
- 366
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
craftcms/cms のほかの issue
-
bug repo:cms
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
craftcms/cms#20205 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug repo:cms
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
craftcms/cms#20203 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[5.x] MCP: `configuration.update` fails for Matrix fields with TypeError on `$propagationMethod`オープンbug repo:cms
難易度 4/5 1〜2日 初心者へのやさしさ 55/100
craftcms/cms#20406 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
repo:cms
難易度 3/5 1〜2日 初心者へのやさしさ 73/100
craftcms/cms#20405 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[5.x]: MCP returns `[]` for CKEditor field values対応中かも @i-just が今日担当しました。 オープンrepo:cms
craftcms/cms#20404 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
sync-en
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Перевод устарел
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Automattic/blocks-engine#4621 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
YunoHost-Apps/snappymail_ynh#205 ·