From e718af5f3c25ff6e6d9930e98b94810c85735737 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 3 Mar 2022 15:17:23 -0700 Subject: [PATCH] Fix infolog edit was not displaying 'None' when no category was set --- infolog/inc/class.infolog_ui.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 08b57ba56b..fd60d361d9 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -2206,6 +2206,11 @@ class infolog_ui $readonlys['tabs']['project'] = true; // disable the project tab } + // Don't send '0' if there is no category + if(!$content['info_cat']) + { + unset($content['info_cat']); + } $content['duration_format'] = $this->duration_format; $content['hours_per_workday'] = $this->hours_per_workday; if ($this->prefs['show_id']) $content['info_number'] = $info_id;