mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
* InfoLog/PostgreSQL: new entries were created with info_id 0: duplicate key value violates unique constraint
This commit is contained in:
parent
ad2c3674e5
commit
17eed582f5
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user