mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
allow to use columns, which are not unique, for read
This commit is contained in:
parent
bd7f7f417d
commit
325d849332
@ -279,6 +279,16 @@ class so_sql
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!$query) // no unique key in keys, lets try everything else
|
||||
{
|
||||
foreach($this->db_data_cols as $db_col => $col)
|
||||
{
|
||||
if ($this->data[$col] != '')
|
||||
{
|
||||
$query[$db_col] = $this->data[$col];
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!$query) // keys has no cols
|
||||
{
|
||||
$this->db2data();
|
||||
|
Loading…
Reference in New Issue
Block a user