#4966 Options value editing - Text input

This commit is contained in:
Muammer Top 2021-12-06 12:14:21 +03:00
parent 87317d0cd1
commit 6f0486adaf
2 changed files with 3 additions and 2 deletions

View File

@ -396,4 +396,5 @@ return [
'page' => 'Page',
'undefined_page' => 'Undefined Page',
'id' => 'ID',
'custom_field' => 'Custom Field',
];

View File

@ -25,7 +25,7 @@ class OptionConfigurationFormFields
foreach ($options as $option)
{
if($optionValue = $productoptionsValueRepository->getWithOptionsId([$option->id]))
if($productoptionsValueRepository->getWithOptionsId([$option->id]))
{
$options_fields['option-'.$option->getId()] = [
'type' => 'anomaly.field_type.select',
@ -44,7 +44,7 @@ class OptionConfigurationFormFields
'type' => 'anomaly.field_type.text',
'class' => 'form-control product-custom-fields',
'required' => false,
'label' => 'Custom',
'label' => trans('visiosoft.module.advs::field.custom_field'),
];
$fields = array_merge($options_fields, ['price', 'currency', 'stock']);