Fix serializzazioni varie, vers 1033
This commit is contained in:
+5
-2
@@ -372,7 +372,9 @@ public class resoconti
|
||||
Dictionary<int, string> answ = new Dictionary<int, string>();
|
||||
if (memLayer.ML.isInCacheObject("codColore"))
|
||||
{
|
||||
answ = (Dictionary<int, string>)memLayer.ML.objCacheObj("codColore");
|
||||
string redKey = memLayer.ML.redHash("codColore");
|
||||
string serVal = memLayer.ML.getRSV(redKey);
|
||||
answ = JsonConvert.DeserializeObject<Dictionary<int, string>>(serVal);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -401,7 +403,8 @@ public class resoconti
|
||||
}
|
||||
answ.Add(item.IdxStato, _colore);
|
||||
}
|
||||
memLayer.ML.setCacheVal("codColore", answ, true);
|
||||
string serVal = JsonConvert.SerializeObject(answ);
|
||||
memLayer.ML.setCacheVal("codColore", serVal, true);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user