From 977ffd57689c6e32c7cd6ee0cfaf66d364742cbb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 11 Feb 2014 15:22:21 +0000 Subject: [PATCH] fix javascript error when opening a new infolog or convert a mail to an infolog --- infolog/inc/class.infolog_ui.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 3519b3c931..d5bf9a190c 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -2005,6 +2005,8 @@ class infolog_ui $content['hours_per_workday'] = $this->hours_per_workday; if ($this->prefs['show_id']) $content['info_number'] = $info_id; + $content['info_anz_subs'] = (int)$content['info_anz_subs']; // gives javascript error if empty! + $old_pm_id = is_array($pm_links) ? array_shift($pm_links) : $content['old_pm_id']; if (!isset($content['pm_id']) && $old_pm_id) $content['pm_id'] = $old_pm_id;