Fixes for deliveries vs sale_channels
This commit is contained in:
@@ -12,15 +12,11 @@ class Tag
|
||||
|
||||
public static function storeTags($model, $tags)
|
||||
{
|
||||
if ($tags) {
|
||||
$tags = collect($tags)->transform(
|
||||
function ($item, $key) {
|
||||
return (int) $item;
|
||||
}
|
||||
)->toArray();
|
||||
return $model->syncTags($tags, true);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
$tags = $tags ? collect($tags)->transform(
|
||||
function ($item, $key) {
|
||||
return (int) $item;
|
||||
}
|
||||
)->toArray() : false;
|
||||
return $tags ? $model->syncTags($tags, true) : false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user