Ticket #1929 (new 改善提案)
会員管理>会員マスターの検索結果の並びが不定
Reported by: | AMUAMU | Owned by: | somebody |
---|---|---|---|
Priority: | 低 | Milestone: | バックログ |
Component: | 管理画面 | Version: | 2.12.1 |
Keywords: | Cc: | ||
修正済み: | no |
Description
ORDER BY 指定がされないクエリが実行されるため、結果の並びが不定(DB処依存)。
利用頻度を考えるとcustomer_id desc指定となるのが望ましいと思われる。
SC_helper_Customer.php 内sfGetSearchDataにおいて
$arrData = $objQuery->getAll($objSelect->getList() . ' order by customer_id desc', $objSelect->arrVal);
とすれば固定できるが美しくない。
getAllを使っていて$objQuery->setOrder()指定が無効。 SC_CustomerList内のsetOrder指定も無効。 上記のように直接書くのも美しくなく微妙であり見直すべきかと思われます
フォーラム関連スレッド http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=10930&forum=11&post_id=52569
Change History
Note: See
TracTickets for help on using
tickets.