2
0
forked from Wavyzz/dolibarr

fix the sql request, add (int)

This commit is contained in:
FLIO
2023-03-28 16:50:44 +02:00
parent a05f40463d
commit e9e2a8850f

View File

@@ -53,8 +53,8 @@ if ($action === "updatestatusprospect") {
$response = '';
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET ";
$sql .= "fk_stcomm=".$db->escape($idstatus);
$sql .= " WHERE rowid = ".$db->escape($idprospect);
$sql .= "fk_stcomm=".(int) $db->escape($idstatus);
$sql .= " WHERE rowid = ".(int) $db->escape($idprospect);
$resql = $db->query($sql);