EC-CUBE / EC-CUBE/ec-cube

商品CSV登録でホストを含めて商品画像登録すると商品の編集ができない

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

Description

## 概要(Overview)
商品CSV登録で商品画像をhttps://example.com/html/upload/save_image/000000000_00000000000.png のようにホスト付きで登録することが可能でショップなどでは正常に動作しているが、
編集画面で保存しようとすると$ProductImage->setSortNo($sortNo_val); でシステムエラーになる
https://github.com/EC-CUBE/ec-cube/blob/4.0/src/Eccube/Controller/Admin/Product/ProductController.php#L570

## 期待する内容(Expect) or 要望 (Requirement)
・商品登録画面でが保存ができる
・または商品CSV登録でパス以外は登録できない

## 再現手順(Procedure)
1. 商品CSV登録で商品画像をhttps://example.com/html/upload/save_image/000000000_00000000000.pngのように
ホスト込みのURLで登録する
2. 登録された商品の編集画面で登録ボタンを押す

→ システムエラー Call to a member function setSortNo() on null

スクリーンショット 2021-03-11 1 20 18

### 環境 (environment)
+ EC-CUBE: 4.0.5

## 関連情報 (Ref)

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.