From c69f19701f2c4ad01a11700e98972bb228cfc2d9 Mon Sep 17 00:00:00 2001 From: rahul shukla Date: Tue, 28 Jan 2020 18:51:13 +0530 Subject: [PATCH] Issue #2185 --- packages/Webkul/Product/src/Helpers/ConfigurableOption.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Webkul/Product/src/Helpers/ConfigurableOption.php b/packages/Webkul/Product/src/Helpers/ConfigurableOption.php index 2f25463ce..8651eaf2f 100755 --- a/packages/Webkul/Product/src/Helpers/ConfigurableOption.php +++ b/packages/Webkul/Product/src/Helpers/ConfigurableOption.php @@ -191,7 +191,7 @@ class ConfigurableOption extends AbstractProduct if (isset($options[$attribute->id][$optionId])) { $attributeOptionsData[] = [ 'id' => $optionId, - 'label' => $attributeOption->label, + 'label' => $attributeOption->label ? $attributeOption->label : $attributeOption->admin_name, 'swatch_value' => $attribute->swatch_type == 'image' ? $attributeOption->swatch_value_url : $attributeOption->swatch_value, 'products' => $options[$attribute->id][$optionId] ];