#2685 closed defect (fixed)
PC版 トピック別アクセス数表示において、10件ごと表示するはずが、9件ごとになっている
Reported by: | imamura623 | Owned by: | ebihara |
---|---|---|---|
Priority: | minor | Milestone: | OpenPNE2.12.2 |
Component: | pne-admin | Version: | 2.10.x & 2.12.x & 2.14.x |
Keywords: | OpenPNE2.10.8 OpenPNE2.13.2 | Cc: |
Description (last modified by )
■現象
管理画面メニュー「PCページ月次集計」画面から、「PC版 トピック別アクセス数表示」において、10件ごと表示するはずが、9件で1ページとなる。
■原因
webapp/modules/admin/lib/db_admin.php内の関数p_access_analysis_target_topic_target_topic4ym_page_name 内処理において、ID昇順表示時に、target_c_commu_topic_idが0のものを選択しているため、target_c_commu_topic_id=0つまり対象外をselectしているため そのため、昇順時のみ9件しか表示されない。
■修正内容
webapp/modules/admin/lib/db_admin.php内の関数p_access_analysis_target_topic_target_topic4ym_page_nameを変更する。変更箇所は以下 当該ファイルl.2842周辺の $where =" where ktai_flag = ? "; この後に、 $where .= " and target_c_commu_topic_id <> 0 "; を追加する
■関連情報
元のDescription
http://sns.openpne.jp/?m=pc&a=page_fh_diary&target_c_diary_id=17417 より転記
OpenPNE2.10.5にて確認 [現象] 管理画面メニュー「PCページ月次集計」画面から、「PC版 トピック別アクセス数表示」において、10件ごと表示するはずが、9件で1ページとなる。 [再現方法] - 状態 ・コミュニティトピックアクセスログが10件以上ある状態 - 操作 ・管理画面を表示 ・PCページ月次集計を表示 ・「今月最もアクセスのあったトピックを表示する」リンクをクリック [補足] 但しIDまたは、アクセス数で並び替えたときは10件表示される。 [原因] webapp/modules/admin/lib/db_admin.php内の関数p_access_analysis_target_topic_target_topic4ym_page_name 内処理において、ID昇順表示時に、target_c_commu_topic_idが0のものを選択しているため、target_c_commu_topic_id=0つまり対象外をselectしているため そのため、昇順時のみ9件しか表示されない [対応] webapp/modules/admin/lib/db_admin.php内の関数p_access_analysis_target_topic_target_topic4ym_page_nameを変更する。変更箇所は以下 当該ファイルl.2842周辺の $where =" where ktai_flag = ? "; この後に、 $where .= " and target_c_commu_topic_id <> 0 "; を追加する
【追記】 2.12系でも同関数が同一処理をしていると思われるため、再現するか試行してはしていないが、同様の現象となると思われる webapp/modules/admin/lib/db_admin.phpの行1317 対応は同様でよいとは思われる。 行1332へ $where .= " and target_c_commu_topic_id <> 0 "; の追加
Change History (5)
comment:1 Changed 13 years ago by
Keywords: | OpenPNE2.10.8 OpenPNE2.13.2 added |
---|---|
Milestone: | → OpenPNE2.12.2 |
comment:2 Changed 13 years ago by
Keywords: | 確認中 added |
---|---|
Owner: | changed from nobody to ebihara |
comment:3 Changed 13 years ago by
Keywords: | テスト待ち added; 確認中 removed |
---|
comment:4 Changed 13 years ago by
Keywords: | テスト待ち removed |
---|---|
Resolution: | → fixed |
Status: | new → closed |
確認しました。問題ありません。
comment:5 Changed 12 years ago by
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.
#2727にて対応されています