Skip to content

Unable to delete custom option file in admin order create #24842

Closed
@adrian-martinez-interactiv4

Description

Unable to delete custom option file in admin order create due to js error. See steps to reproduce and actual and expected results for further information.

Preconditions (*)

  1. Magento 2.3.2
  2. PHP 7.2

Steps to reproduce (*)

  1. Have a product with at least one custom option of type file as follows:

Captura de pantalla 2019-10-03 a las 15 26 08

  1. Go to Sales -> Orders, click Create New Order button
  2. Select or create a customer, and proceed to order creation.
  3. Select customizable product to be added to quote.
  4. Configure it with a file, in this case is an image called test.png:

Captura de pantalla 2019-10-03 a las 15 27 09

  1. Click Ok, image gets uploaded and attached to custom option successfully.
  2. Click on Configure button in item row again, in order to try to delete the just uploaded file:

Captura de pantalla 2019-10-03 a las 15 36 49

  1. In configure sidebar, click on Delete checkbox, next to the file input.

Expected result (*)

  1. File name gets strikethrough, no js errors:

Captura de pantalla 2019-10-03 a las 15 28 43

  1. When Ok clicked, and reopened through Configure button, I expect no file to be there:

Captura de pantalla 2019-10-03 a las 15 41 57

Actual result (*)

  1. Js error due to bad selector, that avoids to prepare fields for submit, so file does not get removed:

Captura de pantalla 2019-10-03 a las 15 27 48

Metadata

Metadata

Labels

Component: CatalogFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentProgress: doneReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions