This commit is contained in:
@@ -324,11 +324,35 @@ namespace AyaNova.PlugIn.V8
|
||||
|
||||
|
||||
#region BIZ OBJECT Export methods
|
||||
List<string> UsedNames = new List<string>();
|
||||
long LUniqueName = 1;
|
||||
private string GetUniqueName(string tryName) {
|
||||
|
||||
string retName=tryName;
|
||||
do
|
||||
{
|
||||
if (!UsedNames.Contains(retName))
|
||||
{
|
||||
UsedNames.Add(retName);
|
||||
return retName;
|
||||
}
|
||||
retName = util.UniqueNameBuilder(tryName, LUniqueName++, 255);
|
||||
} while (true);
|
||||
|
||||
}
|
||||
|
||||
private void ResetUniqueNames()
|
||||
{
|
||||
LUniqueName = 1;
|
||||
UsedNames.Clear();
|
||||
}
|
||||
|
||||
#region users
|
||||
private async System.Threading.Tasks.Task ExportUsers(ProgressForm progress)
|
||||
{
|
||||
if (!progress.KeepGoing) return;
|
||||
UsedNames.clear
|
||||
|
||||
//Step 1: export the CustomFields to FormCustom if applicable so that when doing individual items we can export their custom data too
|
||||
var ocf = ObjectHasCustomFieldDataToExport("User");
|
||||
bool ShouldExportCustom = ocf != null;
|
||||
|
||||
Reference in New Issue
Block a user