Modify aygetname postgres function to handle translation of items that do not have a name, also code to back it at server
This commit is contained in:
@@ -9,10 +9,12 @@ namespace AyaNova.DataList
|
||||
//Instantiate list object specified
|
||||
//this is safe as it's only attempting to load assemblies in the AyaNova.DataList namespace so can't attempt to instantiate some random object or nefarious object
|
||||
//returns null if doesn't exist
|
||||
internal static IDataListProcessing GetAyaDataList(string ListKey)
|
||||
internal static IDataListProcessing GetAyaDataList(string ListKey, long translationId)
|
||||
{
|
||||
System.Reflection.Assembly ass = System.Reflection.Assembly.GetEntryAssembly();
|
||||
return ass.CreateInstance($"AyaNova.DataList.{ListKey}") as IDataListProcessing;
|
||||
var v= ass.CreateInstance($"AyaNova.DataList.{ListKey}") as IDataListProcessing;
|
||||
v.CurrentUserTranslationId=translationId;
|
||||
return v;
|
||||
}
|
||||
|
||||
//List all the datalist types available
|
||||
|
||||
Reference in New Issue
Block a user