Skip to content

Commit 6c5dd4c

Browse files
committed
code fix on GetNewNumber issue (#8)
1 parent fc623b6 commit 6c5dd4c

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@
3434
/iLogic-Vault-QuickstartLibrary/QuickstartiLogicLibrary2020.25.2.1.zip
3535
/iLogic-VaultInvServer Library/obj/x64/Release
3636
/iLogic-VaultInvServer Library/bin/x64/Release
37+
/iLogic-VaultInvServer Library/obj/x64/Debug

iLogic-Vault-QuickstartLibrary/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("2021.26.0.0")]
36-
[assembly: AssemblyFileVersion("2021.26.0.0")]
35+
[assembly: AssemblyVersion("2021.26.0.1")]
36+
[assembly: AssemblyFileVersion("2021.26.0.1")]

iLogic-Vault-QuickstartLibrary/iLogic-Vault QuickstartLibrary.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -696,11 +696,6 @@ public IList<string> CheckFilesExistBySearchCriteria(Dictionary<string, string>
696696
public string GetNewNumber(string mSchmName, string[] mSchmPrms = null)
697697
{
698698
AWS.NumSchm NmngSchm = null;
699-
if (mSchmPrms == null)
700-
{
701-
mSchmPrms = Array.Empty<string>();
702-
}
703-
704699
try
705700
{
706701
if (mSchmName == "Default")
@@ -711,7 +706,7 @@ public string GetNewNumber(string mSchmName, string[] mSchmPrms = null)
711706
{
712707
NmngSchm = conn.WebServiceManager.NumberingService.GetNumberingSchemes("FILE", AWS.NumSchmType.Activated).First(n => n.Name == mSchmName);
713708
}
714-
return conn.WebServiceManager.DocumentService.GenerateFileNumber(NmngSchm.SchmID, null);
709+
return conn.WebServiceManager.DocumentService.GenerateFileNumber(NmngSchm.SchmID, mSchmPrms);
715710
}
716711
catch (Exception)
717712
{

0 commit comments

Comments
 (0)