fix(esppSync): шорткоды применяются только к полям с типом string
This commit is contained in:
@@ -127,6 +127,9 @@ namespace PARR.EsppSync
|
||||
|
||||
foreach (PropertyInfo property in properties)
|
||||
{
|
||||
var type = property.PropertyType;
|
||||
if(type == typeof(string)){
|
||||
// только для стрингов проверяем шорткоды
|
||||
var value = property.GetValue(dbObjectInEsppObject)?.ToString();
|
||||
|
||||
if (value != null)
|
||||
@@ -135,6 +138,7 @@ namespace PARR.EsppSync
|
||||
property.SetValue(dbObjectInEsppObject, processedValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool isChanged = false;
|
||||
//TODO: FIX ME Please, BRO
|
||||
|
||||
Reference in New Issue
Block a user