EC-CUBE / EC-CUBE/ec-cube

CustomerDeliveryEditController でフロント用の FormType が使われている

Open
#5,968 0 comments 2 reactions 0 assignees View on GitHub
bug bug:Low
Dominant language
PHP
Stars
788
Forks
719
Avg merge
4d 4h
Merged PRs (30d)
39

Description

### 概要(Overview)

src\Eccube\Controller\Admin\Customer\CustomerDeliveryEditController.php で
`use Eccube\Form\Type\Front\CustomerAddressType;`とフロント用と思しき FormType が使われている。

フロント画面のカスタマイズで管理画面に不具合を生じ発見した。

なお、最新版での動作は確認していないが、GitHub でソースを目視する限り同様に思う。
https://github.com/EC-CUBE/ec-cube/blob/4.2/src/Eccube/Controller/Admin/Customer/CustomerDeliveryEditController.php

少なくとも EC-CUBE 4.0.3 では、src\Eccube\Controller\Admin\ 以下で、同様の使い方をしているのはこの箇所のみのようだ。

### 再現手順(Procedure)

src\Eccube\Form\Type\Front\CustomerAddressType.php にある company_name の定義を削ると、管理画面 /admin/customer/<会員ID>/delivery/new がエラーとなる。

### 環境(Environment)

EC-CUBE 4.0.3
MySQL 5.7.24-log
PHP 7.2.34

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.