Update fournisseurs.php
This commit is contained in:
parent
4a564cc05d
commit
534f8712a3
@ -269,7 +269,6 @@ if (empty($reshook))
|
||||
$resql = $db->query("SELECT * FROM " . MAIN_DB_PREFIX . "product_fournisseur_price_extrafields WHERE fk_object = " . $object->product_fourn_price_id);
|
||||
// Insert a new extrafields row, if none exists
|
||||
if ($db->num_rows($resql) != 1) {
|
||||
|
||||
$sql = "INSERT INTO " . MAIN_DB_PREFIX . "product_fournisseur_price_extrafields (fk_object, ";
|
||||
foreach ($extrafield_values as $key => $value) {
|
||||
$sql .= str_replace('options_', '', $key) . ', ';
|
||||
@ -291,7 +290,7 @@ if (empty($reshook))
|
||||
|
||||
// Execute the sql command from above
|
||||
$db->query($sql);
|
||||
|
||||
|
||||
$newprice = price2num(GETPOST("price", "alpha"));
|
||||
|
||||
if ($conf->multicurrency->enabled)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user