Change tag routines, articles saving is ok
This commit is contained in:
@@ -25,6 +25,16 @@ class ArticleAttributes
|
||||
return ArticleAttribute::find($id);
|
||||
}
|
||||
|
||||
public static function storeAttributes($article_price_id, $attributes)
|
||||
{
|
||||
foreach ($attributes as $key => $attribute)
|
||||
{
|
||||
$attributes[$key]['article_price_id'] = $article_price_id;
|
||||
unset($attributes[$key]['attribute_family_id']);
|
||||
self::store($attributes[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
public static function store($data)
|
||||
{
|
||||
$id = isset($data['id']) ? $data['id'] : false;
|
||||
|
||||
Reference in New Issue
Block a user