Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed MTEntryAssets/MTPageAssets bug with lastn="N" and sort_order="a…
…scend" which did not work properly on static. bugid:114272
- Loading branch information
3e01418
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ちょっとこのコミットの意味がわからない・・・。
MTAssets は lastn="5" で Find the newest 5 assets sorted by descend and ascend. が取れてるけど、
MT(Entry|Page)Assets だとFind the oldest 5 assets sorted by descend and latest 5 assets sorted by ascend.
というところが問題だと言っているのだと思ったので @assets のソートに問題が有るんじゃないかと思ったけどそういうことでは無かったということですか?
3e01418
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<mt:PageAssets sort_order="ascend" lastn="N">を実行すると、Staticのときはlastnではなくlimitの結果になってしまっていました。
3e01418
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これはどういう意味ですか?
3e01418
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@assetsの後ろ$last個の部分配列を@assetsに入れています。