Issue #1745 fixed'
This commit is contained in:
parent
19b8de0ffb
commit
faef8adcdb
|
|
@ -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=""{{ $attribute->admin_name }}"" {{ $selectedOption ? 'checked' : ''}}>
|
||||
<input type="checkbox" class="control" id="{{ $attribute->code }}" name="{{ $attribute->code }}" data-vv-as=""{{ $attribute->admin_name }}"" {{ $selectedOption ? 'checked' : ''}} value="1">
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
|
|
@ -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 = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue