Fix infolog edit was not displaying 'None' when no category was set

This commit is contained in:
nathan 2022-03-03 15:17:23 -07:00
parent 1893a2c7fe
commit e718af5f3c

View File

@ -2206,6 +2206,11 @@ class infolog_ui
$readonlys['tabs']['project'] = true; // disable the project tab $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['duration_format'] = $this->duration_format;
$content['hours_per_workday'] = $this->hours_per_workday; $content['hours_per_workday'] = $this->hours_per_workday;
if ($this->prefs['show_id']) $content['info_number'] = $info_id; if ($this->prefs['show_id']) $content['info_number'] = $info_id;