Fix contact can't be cleared

This commit is contained in:
nathangray 2016-12-22 10:49:08 -07:00
parent b91560f79c
commit 4d88ec8445

View File

@ -1044,6 +1044,8 @@ class infolog_bo
protected function write_check_links(&$values)
{
$old_link_id = (int)$values['info_link_id'];
if($values['info_contact'])
{
if(is_array($values['info_contact']))
{
// eTemplate2 returns the array all ready
@ -1075,6 +1077,7 @@ class infolog_bo
{
unset($values['info_link_id']);
}
}
if ($old_link_id && $old_link_id != $values['info_link_id'])
{
$link = Link::get_link($old_link_id);