Issue #1745 fixed'

This commit is contained in:
jitendra 2019-11-07 12:50:40 +05:30
parent 19b8de0ffb
commit faef8adcdb
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<?php $selectedOption = old($attribute->code) ?: $product[$attribute->code] ?>
<label class="switch">
<input type="checkbox" v-validate="'{{$validations}}'" class="control" id="{{ $attribute->code }}" name="{{ $attribute->code }}" data-vv-as="&quot;{{ $attribute->admin_name }}&quot;" {{ $selectedOption ? 'checked' : ''}}>
<input type="checkbox" class="control" id="{{ $attribute->code }}" name="{{ $attribute->code }}" data-vv-as="&quot;{{ $attribute->admin_name }}&quot;" {{ $selectedOption ? 'checked' : ''}} value="1">
<span class="slider round"></span>
</label>

View File

@ -76,7 +76,7 @@ class ProductForm extends FormRequest
]);
foreach ($product->getEditableAttributes() as $attribute) {
if ($attribute->code == 'sku')
if ($attribute->code == 'sku' || $attribute->type == 'boolean')
continue;
$validations = [];