fixed creation of infolog without any link (contained link with id=1 on HEAD)

This commit is contained in:
Ralf Becker 2005-02-05 10:22:25 +00:00
parent 80bf7a97ce
commit 0274dd12be

View File

@ -280,7 +280,7 @@
return $this->tmpl->exec('infolog.uiinfolog.index',$values,array( return $this->tmpl->exec('infolog.uiinfolog.index',$values,array(
'info_type' => $this->bo->enums['type'], 'info_type' => $this->bo->enums['type'],
'info_status' => $all_stati 'info_status' => $all_stati
),$readonlys,$persist,'',$return_html); ),$readonlys,$persist,(int) $return_html);
} }
function delete($values=0,$referer='') function delete($values=0,$referer='')
@ -502,8 +502,7 @@
} }
break; break;
} }
$content['link_to']['primary'] = $content['info_link_id'] ? $content['info_link_id'] : True; $content['link_to']['primary'] = (int)$content['info_link_id'];
if (!isset($this->bo->enums['type'][$content['info_type']])) if (!isset($this->bo->enums['type'][$content['info_type']]))
{ {
$content['info_type'] = 'note'; $content['info_type'] = 'note';