mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-27 07:15:24 +00:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user