From 682e38cb1dcabfd206a1892e68601026780bb6ec Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 14 Feb 2005 10:30:36 +0000 Subject: [PATCH] fixed bug reported by Reinhard Gustavik on the german list: custom status get's not saved and not used --- infolog/inc/class.boinfolog.inc.php | 2 +- infolog/inc/class.uiinfolog.inc.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.boinfolog.inc.php b/infolog/inc/class.boinfolog.inc.php index d9eb542427..e93ef7813a 100644 --- a/infolog/inc/class.boinfolog.inc.php +++ b/infolog/inc/class.boinfolog.inc.php @@ -123,7 +123,7 @@ { $this->status[$key] = array(); } - $this->status[$key] += $this->config->config_data['status'][$key]; + $this->status[$key] = array_merge($this->status[$key],$this->config->config_data['status'][$key]); } } if (isset($this->config->config_data['types']) && is_array($this->config->config_data['types'])) diff --git a/infolog/inc/class.uiinfolog.inc.php b/infolog/inc/class.uiinfolog.inc.php index 890445b93d..c348ff8695 100644 --- a/infolog/inc/class.uiinfolog.inc.php +++ b/infolog/inc/class.uiinfolog.inc.php @@ -431,7 +431,8 @@ $content['info_responsible'] = $parent['info_owner']; } */ - $content['info_status'] = 'ongoing'; + $content['info_type'] = $parent['info_type']; + $content['info_status'] = $this->bo->status['defaults'][$content['info_type']]; $content['info_confirm'] = 'not'; $content['info_subject']=lang($this->messages['re']).' '.$parent['info_subject']; $content['info_des'] = ''; @@ -500,6 +501,7 @@ { $content['info_type'] = $type; } + $content['info_status'] = $this->bo->status['defaults'][$content['info_type']]; break; } $content['link_to']['primary'] = $content['info_link_id'] ? $content['info_link_id'] : True;