View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001569 | Módulo DoliPresta | [All Projects] Bug | public | 2022-05-03 13:01 | 2022-05-03 13:01 |
Reporter | hpuig | Assigned To | hpuig | ||
Priority | high | Severity | major | Reproducibility | always |
Status | assigned | Resolution | open | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0001569: Elimina producto padre al importar productos hijos | ||||
Description | Al importar nuevos productos a Prestashop, al mirar cual es su padre lo elimina. El producto hijo queda "en espera" al no encontrar ya el producto padre. | ||||
Steps To Reproduce | Modificación de E_product.class.php => Línea 1145 | ||||
Additional Information | if (!in_array($elt->ecom_attributeid, $listeattributesids) ) { $ecomp->id = $rowid; $sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."product_attribute_combination WHERE fk_product_parent = ".$elt->doli_product; $resql = $this->db->query($sql); if ($resql->num_rows == 0) { dol_syslog(__METHOD__.":: la combinaison $ecom_prodid ".$elt->ecom_attributeid." n'exite plus ", LOG_WARNING); if ($ecomp->delete($this->user) < 0) { dol_syslog(__METHOD__.":: erreur suppression ".$ecomp->error, LOG_ERR); // TODO Logging ? } } /*if ($ecomp->delete($this->user) < 0) { dol_syslog(__METHOD__.":: erreur suppression ".$ecomp->error, LOG_ERR); // TODO Logging ? }*/ } | ||||
Tags | No tags attached. | ||||