* InfoLog/PostgreSQL: new entries were created with info_id 0: duplicate key value violates unique constraint

This commit is contained in:
Ralf Becker 2016-11-10 16:44:15 +01:00
parent ad2c3674e5
commit 17eed582f5

View File

@ -572,7 +572,7 @@ class infolog_so
$to_write = array();
foreach($values as $key => $val)
{
if (($key != 'info_id' || $force_insert) && isset($table_def['fd'][$key]))
if (($key != 'info_id' || $force_insert && $info_id > 0) && isset($table_def['fd'][$key]))
{
$to_write[$key] = $this->data[$key] = $val; // update internal data
}