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

[メールフォーム]4系版メールフォームで1フォーム内で複数のファイルタイプを利用すると送信完了前にエラーが起こる #2570

Closed
fuchigam1 opened this issue Jul 7, 2023 · 0 comments
Labels
Bug バグ Ver4 バージョン4

Comments

@fuchigam1
Copy link
Collaborator

概要

1つのメールフォームに、タイプが「ファイル」の複数フィールドが存在している場合、確認画面から送信完了画面に遷移するタイミングでエラーとなり処理が止まります。

原因は以下です。
BcFileUploader::moveFileSessionToTmp() 内で setUploadingFiles() で uploadingFiles プロパティにセットするタイミングで、
1つ目のフィールド値が存在しているものを2つ目の値で上書いてます。 
それにより、複数存在すべき値が1つになってしまう状態が発生してます。

この状態が発生することにより、アップロードファイルのパスを受信データに保存しようとするタイミングで、
文字列化されていない配列データを対象フィールドに保存しようとしてしまい、以下のエラーが発生することで処理が止まってます。

Column not found: 1054 Unknown column 'Array' in 'field list'

baserCMS version : 4.7.7

@ryuring ryuring added the Bug バグ label Jul 9, 2023
@kaburk kaburk added the Ver4 バージョン4 label Jul 10, 2023
gondoh added a commit that referenced this issue Aug 31, 2023
fix #2570 4系版メールフォームで1フォーム内で複数のファイルタイプを利用すると送信完了前にエラーが起こる動作を改善
@seto1 seto1 closed this as completed Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug バグ Ver4 バージョン4
Projects
None yet
Development

No branches or pull requests

4 participants