* 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 6fee3b919a
commit 7cd1d0ebf4

View File

@ -536,7 +536,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
}