Fix tag azienda UPPERCASE

This commit is contained in:
Samuele Locatelli
2024-07-31 14:47:55 +02:00
parent 259dc2fac4
commit db2ff3409f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1692,7 +1692,7 @@ namespace MapoDb
// recupero conf azienda...
string CodAzienda = "*";
var listConf = taConfig.GetData();
var recAzienda = listConf.Where(x => x.chiave.ToUpper() == "AZIENDA").FirstOrDefault();
var recAzienda = listConf.Where(x => x.chiave.Equals("AZIENDA", StringComparison.CurrentCultureIgnoreCase)).FirstOrDefault();
if (recAzienda != null)
{
CodAzienda = recAzienda.valore != "*" ? recAzienda.valore : recAzienda.valoreStd;