Fix: missing quotes
This commit is contained in:
parent
f3e79c7fe3
commit
9f418eb042
@ -101,7 +101,7 @@ if ($_GET["action"] == 'del')
|
|||||||
{
|
{
|
||||||
$type='order';
|
$type='order';
|
||||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$sql.= " WHERE nom = '".$_GET["value"];
|
$sql.= " WHERE nom = '".$_GET["value"]."'";
|
||||||
$sql.= " AND type = '".$type."'";
|
$sql.= " AND type = '".$type."'";
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
$sql.= " AND entity = ".$conf->entity;
|
||||||
|
|
||||||
@ -123,7 +123,7 @@ if ($_GET["action"] == 'setdoc')
|
|||||||
// On active le modele
|
// On active le modele
|
||||||
$type='order';
|
$type='order';
|
||||||
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$sql_del.= " WHERE nom = '".$_GET["value"];
|
$sql_del.= " WHERE nom = '".$_GET["value"]."'";
|
||||||
$sql_del.= " AND type = '".$type."'";
|
$sql_del.= " AND type = '".$type."'";
|
||||||
$sql_del.= " AND entity = ".$conf->entity;
|
$sql_del.= " AND entity = ".$conf->entity;
|
||||||
$result1=$db->query($sql_del);
|
$result1=$db->query($sql_del);
|
||||||
|
|||||||
@ -94,7 +94,7 @@ if ($_GET["action"] == 'del')
|
|||||||
{
|
{
|
||||||
$type='shipping';
|
$type='shipping';
|
||||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$sql.= " WHERE nom = '".$_GET["value"];
|
$sql.= " WHERE nom = '".$_GET["value"]."'";
|
||||||
$sql.= " AND type = '".$type."'";
|
$sql.= " AND type = '".$type."'";
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
$sql.= " AND entity = ".$conf->entity;
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ if ($_GET["action"] == 'setdoc')
|
|||||||
// On active le modele
|
// On active le modele
|
||||||
$type='shipping';
|
$type='shipping';
|
||||||
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$sql_del.= " WHERE nom = '".$_GET["value"];
|
$sql_del.= " WHERE nom = '".$_GET["value"]."'";
|
||||||
$sql_del.= " AND type = '".$type."'";
|
$sql_del.= " AND type = '".$type."'";
|
||||||
$sql_del.= " AND entity = ".$conf->entity;
|
$sql_del.= " AND entity = ".$conf->entity;
|
||||||
$result1=$db->query($sql_del);
|
$result1=$db->query($sql_del);
|
||||||
|
|||||||
@ -105,7 +105,7 @@ if ($_GET["action"] == 'del')
|
|||||||
{
|
{
|
||||||
$type='invoice';
|
$type='invoice';
|
||||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$sql.= " WHERE nom = '".$_GET["value"];
|
$sql.= " WHERE nom = '".$_GET["value"]."'";
|
||||||
$sql.= " AND type = '".$type."'";
|
$sql.= " AND type = '".$type."'";
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
$sql.= " AND entity = ".$conf->entity;
|
||||||
|
|
||||||
@ -127,7 +127,7 @@ if ($_GET["action"] == 'setdoc')
|
|||||||
// On active le modele
|
// On active le modele
|
||||||
$type='invoice';
|
$type='invoice';
|
||||||
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$sql_del.= " WHERE nom = '".$_GET["value"];
|
$sql_del.= " WHERE nom = '".$_GET["value"]."'";
|
||||||
$sql_del.= " AND type = '".$type."'";
|
$sql_del.= " AND type = '".$type."'";
|
||||||
$sql_del.= " AND entity = ".$conf->entity;
|
$sql_del.= " AND entity = ".$conf->entity;
|
||||||
$result1=$db->query($sql_del);
|
$result1=$db->query($sql_del);
|
||||||
|
|||||||
@ -110,7 +110,7 @@ if ($_GET["action"] == 'del')
|
|||||||
{
|
{
|
||||||
$type='ficheinter';
|
$type='ficheinter';
|
||||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$sql.= " WHERE nom = '".$_GET["value"];
|
$sql.= " WHERE nom = '".$_GET["value"]."'";
|
||||||
$sql.= " AND type = '".$type."'";
|
$sql.= " AND type = '".$type."'";
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
$sql.= " AND entity = ".$conf->entity;
|
||||||
|
|
||||||
|
|||||||
@ -101,7 +101,7 @@ if ($_GET["action"] == 'del')
|
|||||||
{
|
{
|
||||||
$type='supplier_order';
|
$type='supplier_order';
|
||||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$sql.= " WHERE nom = '".$_GET["value"];
|
$sql.= " WHERE nom = '".$_GET["value"]."'";
|
||||||
$sql.= " AND type = '".$type."'";
|
$sql.= " AND type = '".$type."'";
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
$sql.= " AND entity = ".$conf->entity;
|
||||||
if ($db->query($sql))
|
if ($db->query($sql))
|
||||||
@ -122,7 +122,7 @@ if ($_GET["action"] == 'setdoc')
|
|||||||
// On active le modele
|
// On active le modele
|
||||||
$type='supplier_order';
|
$type='supplier_order';
|
||||||
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$sql_del.= " WHERE nom = '".$_GET["value"];
|
$sql_del.= " WHERE nom = '".$_GET["value"]."'";
|
||||||
$sql_del.= " AND type = '".$type."'";
|
$sql_del.= " AND type = '".$type."'";
|
||||||
$sql_del.= " AND entity = ".$conf->entity;
|
$sql_del.= " AND entity = ".$conf->entity;
|
||||||
$result1=$db->query($sql_del);
|
$result1=$db->query($sql_del);
|
||||||
|
|||||||
@ -101,7 +101,7 @@ if ($_GET["action"] == 'del')
|
|||||||
{
|
{
|
||||||
$type='delivery';
|
$type='delivery';
|
||||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$sql.= " WHERE nom = '".$_GET["value"];
|
$sql.= " WHERE nom = '".$_GET["value"]."'";
|
||||||
$sql.= " AND type = '".$type."'";
|
$sql.= " AND type = '".$type."'";
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
$sql.= " AND entity = ".$conf->entity;
|
||||||
|
|
||||||
@ -123,7 +123,7 @@ if ($_GET["action"] == 'setdoc')
|
|||||||
// On active le modele
|
// On active le modele
|
||||||
$type='delivery';
|
$type='delivery';
|
||||||
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$sql_del.= " WHERE nom = '".$_GET["value"];
|
$sql_del.= " WHERE nom = '".$_GET["value"]."'";
|
||||||
$sql_del.= " AND type = '".$type."'";
|
$sql_del.= " AND type = '".$type."'";
|
||||||
$sql_del.= " AND entity = ".$conf->entity;
|
$sql_del.= " AND entity = ".$conf->entity;
|
||||||
$result1=$db->query($sql_del);
|
$result1=$db->query($sql_del);
|
||||||
|
|||||||
@ -155,7 +155,7 @@ if ($_GET["action"] == 'setdoc')
|
|||||||
// On active le modele
|
// On active le modele
|
||||||
$type='propal';
|
$type='propal';
|
||||||
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$sql_del.= " WHERE nom = '".$_GET["value"];
|
$sql_del.= " WHERE nom = '".$_GET["value"]."'";
|
||||||
$sql_del.= " AND type = '".$type."'";
|
$sql_del.= " AND type = '".$type."'";
|
||||||
$sql_del.= " AND entity = ".$conf->entity;
|
$sql_del.= " AND entity = ".$conf->entity;
|
||||||
$result1=$db->query($sql_del);
|
$result1=$db->query($sql_del);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user