Taskinfo.lua - Issue #1388 - don't just assume this is a string

fixes the catchall at the end in case a task is unassigned - sometimes it's not a string. #1388
This commit is contained in:
Applevangelist
2020-12-01 16:10:55 +01:00
committed by GitHub
parent 64c3fb985a
commit 1bd5193786
@@ -344,8 +344,10 @@ function TASKINFO:Report( Report, Detail, ReportGroup, Task )
Text = DataText Text = DataText
else else
local DataText = Data.Data -- #string local DataText = Data.Data -- #string
if type(DataText) == "string" then --Issue #1388 - don't just assume this is a string
Text = DataText Text = DataText
end end
end
if Line < math.floor( Data.Order / 10 ) then if Line < math.floor( Data.Order / 10 ) then
if Line == 0 then if Line == 0 then