Child pages
  • [in-commerce] Product creation errors [5.2.1-B2]
Skip to end of metadata
Go to start of metadata

While trying to reproduce problem, described in [in-commerce] Order Workflow Broken Without Backorders Management Enabled I've stumbled upon 2 even more annoying problems:

Double product creation

  1. go to any section in Catalog
  2. open new Tangible product creation form
  3. click on "Save" on empty form to see validation error
  4. type "ttt" as Name and "taa" as SKU
  5. hit Save

Two identical products are created instead of one. This might be related to other problem (see below), because 1 product record created in temp table, but while temp handler copies it to live table it doubles it somehow.

SQL error on product save

  1. go to any section in Catalog
  2. open new Tangible product creation form
  3. click on "Save" on empty form to see validation error
  4. type "ttt" as Name and "taa" as SKU
  5. click on "Inventory" tab
  6. hit Save

As a result following SQL error is displayed:

P.S.

Might be we shouldn't worry about it that much, because in In-Portal 5.3.x temp handler was rewritten from the scratch and this problem might not exist at all. Need to merge In-Portal 5.2.1-B2 release to In-Portal 5.3.x branch to verify though.

category_item_add_core_fix.patch

category_item_add_modules_fix.patch

Related Tasks

INP-1281 - Getting issue details... STATUS

2 Comments

  1. This was working in 5.2.1-B1.

  2. Both problems were side effect from changes made in  INP-1240 - Getting issue details... STATUS  task implementation. It actually revealed some problems, that only exist due non error-prone implementation of item loading handling in "Product Pricing" and "Category Item" units.

    Product pricing unit was doing product save on pricing loading from database and that caused duplicate product to be created. Category item wasn't able to load at all and produced an SQL error because of missing Link id.