[6.x]: Element index sorted by a custom field ignores the sort direction

オープン
#20,204 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
php
領域
backend

調査の方向性

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 の本文から書いたものです。

説明

bug repo:cms
What happened?
Steps to reproduce
  1. Open an entries index whose entry type has a plain text field that is filled in on some entries (here a "Director" field).
  2. Open View and set Sort by to that field.
  3. 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

craftcms/cms のほかの issue

craftcms/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。