fix javascript error when opening a new infolog or convert a mail to an infolog

This commit is contained in:
Ralf Becker 2014-02-11 15:22:21 +00:00
parent 7809cdcdcc
commit 977ffd5768

View File

@ -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;