mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-04 16:12:39 +01:00
bugfix
This commit is contained in:
@@ -50,6 +50,10 @@ else if ($_POST["action"] == 'multiprix_num')
|
||||
}
|
||||
if ($_POST["action"] == 'multiprix')
|
||||
{
|
||||
$res=$db -> desc_table(MAIN_DB_PREFIX."societe","price_level");
|
||||
if(! $db -> fetch_row())
|
||||
{
|
||||
$field_desc = array('type'=>'TINYINT','value'=>'4','default'=>'1');
|
||||
// on ajoute le champ price_level dans la table societe
|
||||
if(! $db -> add_field(MAIN_DB_PREFIX."societe","price_level",$field_desc))
|
||||
{
|
||||
@@ -78,13 +82,14 @@ if ($_POST["action"] == 'multiprix')
|
||||
Header("Location: produit.php");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
dolibarr_set_const($db, "PRODUIT_MULTIPRICES", $_POST["activate_multiprix"]);
|
||||
dolibarr_set_const($db, "PRODUIT_MULTIPRICES_LIMIT", "6");
|
||||
Header("Location: produit.php");
|
||||
dolibarr_set_const($db, "PRODUIT_MULTIPRICES", $_POST["activate_multiprix"]);
|
||||
dolibarr_set_const($db, "PRODUIT_MULTIPRICES_LIMIT", "6");
|
||||
Header("Location: produit.php");
|
||||
}
|
||||
exit;
|
||||
exit;
|
||||
}
|
||||
else if ($_POST["action"] == 'sousproduits')
|
||||
{
|
||||
|
||||
@@ -381,7 +381,7 @@ class DoliDb
|
||||
{
|
||||
// Si le resultset n'est pas fourni, on prend le dernier utilis<69> sur cette connexion
|
||||
if (! is_resource($resultset)) { $resultset=$this->results; }
|
||||
return mysql_fetch_row($resultset);
|
||||
return @mysql_fetch_row($resultset);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user