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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,7 +344,9 @@ function TASKINFO:Report( Report, Detail, ReportGroup, Task )
Text = DataText
else
local DataText = Data.Data -- #string
Text = DataText
if type(DataText) == "string" then --Issue #1388 - don't just assume this is a string
Text = DataText
end
end
if Line < math.floor( Data.Order / 10 ) then