Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

商品名に「'」が入ると受注管理で商品を追加できない不具合の修正 #4605

Merged
merged 1 commit into from
Jul 3, 2020

Conversation

ryo-endo
Copy link
Contributor

@ryo-endo ryo-endo commented Jun 30, 2020

概要(Overview・Refs Issue)

開発コミュニティより
「商品名に「'」が入ると受注管理で商品を追加できない」
https://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=24166&forum=9

方針(Policy)

商品名をエスケープできていなかった。

実装に関する補足(Appendix)

エスケープには、他の箇所でも利用されている escape('js') を使いました。

テスト(Test)

・商品名に「'」が含まれていても、受注管理で商品を追加できることを確認。(指摘のケース)
・「'」が含まれていない商品も追加できることを確認。
・fnAddOrderItem関数でデバッグをして、商品名が正しく引数で渡っていることを確認。

相談(Discussion)

なし

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更
  • フックポイントの呼び出しタイミングの変更
  • フックポイントのパラメータの削除・データ型の変更
  • twigファイルに渡しているパラメータの削除・データ型の変更
  • Serviceクラスの公開関数の、引数の削除・データ型の変更
  • 入出力ファイル(CSVなど)のフォーマット変更

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか

@okazy okazy added the bug:Low label Jul 1, 2020
Copy link
Contributor

@okazy okazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

動作確認して問題ありませんでした。修正内容も問題ないと思います。

@okazy okazy added this to the 4.0.x milestone Jul 1, 2020
@okazy okazy merged commit 2b559ab into EC-CUBE:4.0 Jul 3, 2020
@okazy okazy modified the milestones: 4.0.x, 4.0.5 Jul 3, 2020
@okazy okazy added the affected:admin_template 管理画面テンプレートのDOMに影響のある変更 label Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affected:admin_template 管理画面テンプレートのDOMに影響のある変更 bug:Low Status: ready-for-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants