This commit is contained in:
jitendra 2019-10-24 17:47:46 +05:30
parent 62533d9df8
commit 1b21c39ee5
2 changed files with 1 additions and 3 deletions

View File

@ -11,8 +11,6 @@ class ProductAttributeValue extends Model implements ProductAttributeValueContra
{
public $timestamps = false;
// protected $with = ['attribute'];
/**
* @var array
*/

View File

@ -162,7 +162,7 @@ abstract class AbstractType
if (! isset($data[$attribute->code]) || (in_array($attribute->type, ['date', 'datetime']) && ! $data[$attribute->code]))
continue;
if ($attribute->type == 'multiselect')
if ($attribute->type == 'multiselect' || $attribute->type == 'checkbox')
$data[$attribute->code] = implode(",", $data[$attribute->code]);
if ($attribute->type == 'image' || $attribute->type == 'file') {