fix:rowid is string in currencies table

This commit is contained in:
bahfir abbes 2020-10-24 03:41:25 +01:00
parent ae4020c9fe
commit 3f03b678e9

View File

@ -878,7 +878,7 @@ if (GETPOST('actionadd') || GETPOST('actionmodify'))
$i++;
}
$sql .= " WHERE ".$rowidcol." = ".(int) $db->escape($rowid);
$sql .= " WHERE ".$rowidcol." = '".$db->escape($rowid)."'";
if (in_array('entity', $listfieldmodify)) $sql .= " AND entity = '".getEntity($tabname[$id])."'";
dol_syslog("actionmodify", LOG_DEBUG);