Delete products tags entries without delete tags for webservice usage
This commit is contained in:
+11
-1
@@ -4674,7 +4674,7 @@ class ProductCore extends ObjectModel
|
|||||||
$ids = array();
|
$ids = array();
|
||||||
foreach ($tag_ids as $value)
|
foreach ($tag_ids as $value)
|
||||||
$ids[] = $value['id'];
|
$ids[] = $value['id'];
|
||||||
if ($this->deleteTags())
|
if ($this->deleteWsTags())
|
||||||
{
|
{
|
||||||
if ($ids)
|
if ($ids)
|
||||||
{
|
{
|
||||||
@@ -4692,6 +4692,16 @@ class ProductCore extends ObjectModel
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete products tags entries without delete tags for webservice usage
|
||||||
|
*
|
||||||
|
* @return array Deletion result
|
||||||
|
*/
|
||||||
|
public function deleteWsTags()
|
||||||
|
{
|
||||||
|
return Db::getInstance()->delete('product_tag', 'id_product = '.(int)$this->id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public function getWsManufacturerName()
|
public function getWsManufacturerName()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user