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
会員マスタの検索条件のセッション保持方法を変更 #2113
会員マスタの検索条件のセッション保持方法を変更 #2113
Conversation
@ryo-endo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
■動作確認結果
顧客レーコドを52登録して会員検索画面
を確認しました。
全て項目保存されます。
ページングも正しく動きます。
会員詳細画面へ移動して、会員編集して戻ったら前の検索ページに戻りました。
問題ありませんでした。
■ソースレビュー
Entityの内容は配列に変えてSessionに保存するようになってます。
ロッジクを確認しました、問題ありません
@ryo-endo @t-nagahashi |
@chihiro-adachi
再現手順
備考:PHP7.1 MySQL 5.5 だいたい問題わかります。 会員種別と性別をチェックしたらエラーなくなります |
@trebla-on
のときに取得できるviewDataが
となりキー値がずれて正しく制御できていません。 choice typeで問題が発生していたので、以下のように修正しています。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コードレビュー。動作確認OKです。
影響範囲は、管理画面の会員検索。
検索実行のときにセッションに保持されるデータ形式が変わるだけなので、互換性含めて問題ないと思います。
概要(Overview・Refs Issue)
#2112 の対応
方針(Policy)
entityをセッションに保持するのは推奨されていない
entityではなく、postされたデータをセッションに保持し、利用時に復元するように修正
参考
http://qiita.com/tarokamikaze/items/b6cb73be0294fe6b14c1#14ajax%E7%94%A8%E3%81%AE-api-%E4%BD%9C%E3%82%8A%E3%81%9F%E3%81%84
実装に関する補足(Appendix)
テスト(Test)
相談(Discussion)