fix a bug regarding the check of infolog_status existing in known status for the type selected

This commit is contained in:
Klaus Leithoff 2010-07-30 10:29:25 +00:00
parent 5856176c7a
commit 08fed99081

View File

@ -1003,7 +1003,7 @@ class infolog_ui
if ($content['js']) $content['js'] = '<script>'.$content['js'].'</script>';
}
// on a type-change, set the status to the default status of that type, if the actual status is not supported by the new type
if (!in_array($content['info_status'],$this->bo->status[$content['info_type']]))
if (!array_key_exists($content['info_status'],$this->bo->status[$content['info_type']]))
{
$content['info_status'] = $this->bo->status['defaults'][$content['info_type']];
if ($content['info_status'] != 'done') $content['info_datecompleted'] = '';