bugfix
This commit is contained in:
parent
7401a946c8
commit
b95e370efb
@ -50,6 +50,10 @@ else if ($_POST["action"] == 'multiprix_num')
|
|||||||
}
|
}
|
||||||
if ($_POST["action"] == 'multiprix')
|
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
|
// on ajoute le champ price_level dans la table societe
|
||||||
if(! $db -> add_field(MAIN_DB_PREFIX."societe","price_level",$field_desc))
|
if(! $db -> add_field(MAIN_DB_PREFIX."societe","price_level",$field_desc))
|
||||||
{
|
{
|
||||||
@ -78,13 +82,14 @@ if ($_POST["action"] == 'multiprix')
|
|||||||
Header("Location: produit.php");
|
Header("Location: produit.php");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dolibarr_set_const($db, "PRODUIT_MULTIPRICES", $_POST["activate_multiprix"]);
|
dolibarr_set_const($db, "PRODUIT_MULTIPRICES", $_POST["activate_multiprix"]);
|
||||||
dolibarr_set_const($db, "PRODUIT_MULTIPRICES_LIMIT", "6");
|
dolibarr_set_const($db, "PRODUIT_MULTIPRICES_LIMIT", "6");
|
||||||
Header("Location: produit.php");
|
Header("Location: produit.php");
|
||||||
}
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else if ($_POST["action"] == 'sousproduits')
|
else if ($_POST["action"] == 'sousproduits')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -381,7 +381,7 @@ class DoliDb
|
|||||||
{
|
{
|
||||||
// Si le resultset n'est pas fourni, on prend le dernier utilisé sur cette connexion
|
// Si le resultset n'est pas fourni, on prend le dernier utilisé sur cette connexion
|
||||||
if (! is_resource($resultset)) { $resultset=$this->results; }
|
if (! is_resource($resultset)) { $resultset=$this->results; }
|
||||||
return mysql_fetch_row($resultset);
|
return @mysql_fetch_row($resultset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user