[General] Always use tableHelper's deepCopy() instead of shallowCopy()

This commit is contained in:
David Cernat
2020-02-24 21:47:34 +02:00
parent 0c4ce6402f
commit cfffb0b9eb
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1316,7 +1316,7 @@ function commandHandler.CreateRecord(pid, cmd)
-- We don't want to insert a direct reference to the storedTable in our record data,
-- so create a copy of the storedTable and insert that instead
local savedTable = tableHelper.shallowCopy(storedTable)
local savedTable = tableHelper.deepCopy(storedTable)
-- The id and the savedTable will form a key-value pair, so there's no need to keep
-- the id in the savedTable as well