Skip to content
Snippets Groups Projects
Commit 686348a0 authored by Marcos García de La Fuente's avatar Marcos García de La Fuente
Browse files

FIX #4287 SQL error when accessing an unexisting proposal

parent 2d3915b8
No related branches found
No related tags found
No related merge requests found
......@@ -1026,7 +1026,7 @@ class Form
$sql = "SELECT re.rowid, re.amount_ht, re.amount_tva, re.amount_ttc,";
$sql.= " re.description, re.fk_facture_source";
$sql.= " FROM ".MAIN_DB_PREFIX ."societe_remise_except as re";
$sql.= " WHERE fk_soc = ".$socid;
$sql.= " WHERE fk_soc = ".(int) $socid;
if ($filter) $sql.= " AND ".$filter;
$sql.= " ORDER BY re.description ASC";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment