Ticket #129 (closed バグ指摘: 修正済)

Opened 17 years ago

Last modified 17 years ago

全アンケートの回答結果がダウンロードされる

Reported by: nakanishi Owned by: somebody
Priority: Milestone: EC-CUBE
Component: フロント Version: 1.3系
Keywords: Cc:
修正済み:

Description (last modified by nakanishi) (diff)

 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=763&forum=9

『アンケート管理画面の登録済みアンケートから、アンケート毎の回答結果をCSVでダウンロードする機能がありますが、どのアンケートの「download」をクリックしても、全アンケートの回答結果がまとめてダウンロードされてしまいます。』

html/admin/contents/inquiry.phpの140行目のSQLのWHERE句に「question_id」の条件がないのが原因かと思います。

Change History

comment:1 Changed 17 years ago by nakanishi

  • Description modified (diff)

comment:2 Changed 17 years ago by nakanishi

  • Status changed from new to closed
  • Resolution set to 修正済

140行目のSQLのWHERE句を以下のように修正しました。

WHERE del_flg = 0 ORDER BY result_id ASC");

WHERE del_flg = 0 AND question_id = ? ORDER BY result_id ASC",array($_GETquestion_id?));

Note: See TracTickets for help on using tickets.