BUG fix in parameter validation of DateTimeFromString.

BUG fix in SortList function return value.
This commit is contained in:
NileshGhodekar 2017-09-27 10:02:39 +01:00
Родитель 9953220f1c
Коммит 7a80990655
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -22,7 +22,7 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary
/// Build Number (MMDD) /// Build Number (MMDD)
/// Revision (if any on the same day) /// Revision (if any on the same day)
/// </summary> /// </summary>
internal const string Version = "2.17.0716.0"; internal const string Version = "2.17.0927.0";
/// <summary> /// <summary>
/// File Version information for the assembly consists of the following four values: /// File Version information for the assembly consists of the following four values:
@ -31,6 +31,6 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary
/// Build Number (MMDD) /// Build Number (MMDD)
/// Revision (if any on the same day) /// Revision (if any on the same day)
/// </summary> /// </summary>
internal const string FileVersion = "2.17.0716.0"; internal const string FileVersion = "2.17.0927.0";
} }
} }

Просмотреть файл

@ -2246,7 +2246,7 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common
try try
{ {
if (this.parameters.Count < 1 && this.parameters.Count > 2) if (this.parameters.Count < 1 || this.parameters.Count > 2)
{ {
throw Logger.Instance.ReportError(EventIdentifier.ExpressionFunctionDateTimeFromStringInvalidFunctionParameterCountError, new InvalidFunctionFormatException(Messages.ExpressionFunction_InvalidFunctionParameterCountError2, this.function, 1, 2, this.parameters.Count)); throw Logger.Instance.ReportError(EventIdentifier.ExpressionFunctionDateTimeFromStringInvalidFunctionParameterCountError, new InvalidFunctionFormatException(Messages.ExpressionFunction_InvalidFunctionParameterCountError2, this.function, 1, 2, this.parameters.Count));
} }
@ -4903,7 +4903,7 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common
list.Sort(); list.Sort();
result = this.parameters[0]; result = list;
} }
else else
{ {