Details
-
Bug
-
Resolution: Unresolved
-
High
-
4.5.4
-
Ibexa Commerce
-
Yes
Description
Steps to reproduce:
- Update the length measurements:
ibexa_measurement: conversion: formulas: - { source_unit: gauge, target_unit: meter, formula: 'value' } types: length: nanometer: { symbol: "nm" } micrometer: { symbol: "μm" } centimeter: { symbol: "cm" } millimeter: { symbol: "mm" } gauge: { symbol: "ga." } # Newly added unit inch: { symbol: '"' } mil: { symbol: "mil" }
system: default: measurement: types: length: - gauge
- Create a new Attribute Group with a single measurement attribute and choose "Length".
- Create a new Product with the gauge measurement and set it to 10 or any other value.
- Move the gauge unit to a new type:
ibexa_measurement: types: gauge_type: gauge: { symbol: "ga." }
system: default: measurement: types: gauge_type: - gauge
- Refresh the page and view the Product created in the previous steps.
Result:
One is presented with the exception:
Argument '$unit' is invalid: gauge for length does not exist. Available units: 'meter', 'centimeter', 'millimeter', 'foot', 'inch', 'yard', 'nanometer', 'micrometer', 'mil'
Expected result:
There should be a command that allows for a seamless transition to a new unit type as database records need to be updated after changing the type.