Merge pull request #1747 from jitendra-webkul/jitendra

Issue #1745 fixed
This commit is contained in:
Jitendra Singh 2019-11-07 12:51:39 +05:30 committed by GitHub
commit 615641d6c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 = [];