forked from extern/egroupware
* InfoLog/PostgreSQL: new entries were created with info_id 0: duplicate key value violates unique constraint
This commit is contained in:
parent
6fee3b919a
commit
7cd1d0ebf4
@ -536,7 +536,7 @@ class infolog_so
|
|||||||
$to_write = array();
|
$to_write = array();
|
||||||
foreach($values as $key => $val)
|
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
|
$to_write[$key] = $this->data[$key] = $val; // update internal data
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user