Ticket #328 (closed バグ指摘: 修正済)
顧客マスタの検索機能でWarning
Reported by: | adachi | Owned by: | somebody |
---|---|---|---|
Priority: | 中 | Milestone: | EC-CUBE2.3.0 |
Component: | フロント | Version: | 2.1.2(正式版) |
Keywords: | Cc: | ||
修正済み: |
Description
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=2329&forum=9
顧客管理画面で、誕生日の開始年月日だけを設定して検索するとWarningがでるようです。 SC_SelectSqlクラスのselectTermRangeメソッドを修正しました。 SC_SelectSql.phpの96行目周辺 $date2 = mktime (0, 0, 0, $to_month, $to_day, $to_year); $date2 = $date2 + 86400; 修正後 if ( $to_month != "" && $to_year != "" && $to_day != "" ) { $date2 = mktime (0, 0, 0, $to_month, $to_day, $to_year); $date2 = $date2 + 86400; }
Change History
Note: See
TracTickets for help on using
tickets.
r17473 で修正
終了期間を未設定の場合、$to_month, $to_day, $to_year が空文字として渡されるため
根本的な解決ではないですが、とりあえずintval()で整数変換して対応しました。