mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +01:00
Infolog: Fix blank link / contact rows added to entry history
This commit is contained in:
parent
8416c435a7
commit
3bb78f7f86
@ -1045,7 +1045,7 @@ class infolog_bo
|
|||||||
if ($values['info_id'] && $info_id)
|
if ($values['info_id'] && $info_id)
|
||||||
{
|
{
|
||||||
$this->write_check_links($to_write);
|
$this->write_check_links($to_write);
|
||||||
if(!$values['info_link_id'] || $values['info_link_id'] != $to_write['info_link_id'])
|
if(!$values['info_link_id'] || $values['info_link_id'] != $to_write['info_link_id'] || $old['info_from'] != $to_write['info_from'])
|
||||||
{
|
{
|
||||||
// Just got a link ID, need to save it
|
// Just got a link ID, need to save it
|
||||||
unset($to_write['info_etag']); // we must not increment it again
|
unset($to_write['info_etag']); // we must not increment it again
|
||||||
|
@ -2328,7 +2328,7 @@ class infolog_ui
|
|||||||
|
|
||||||
if(is_array($pm_links))
|
if(is_array($pm_links))
|
||||||
{
|
{
|
||||||
$old_pm_id = $content['pm_id'] && in_array($content['pm_id'], $pm_links) ? $content['pm_id'] : array_shift($pm_links);
|
$old_pm_id = ($content['pm_id'] && in_array($content['pm_id'], $pm_links) ? $content['pm_id'] : array_shift($pm_links)) ?? "";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user