Skip to content

Commit

Permalink
BUG fix in parameter validation of DateTimeFromString.
Browse files Browse the repository at this point in the history
BUG fix in SortList function return value.
  • Loading branch information
NileshGhodekar committed Sep 27, 2017
1 parent 9953220 commit 7a80990
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal static class VersionInfo
/// Build Number (MMDD)
/// Revision (if any on the same day)
/// </summary>
internal const string Version = "2.17.0716.0";
internal const string Version = "2.17.0927.0";

/// <summary>
/// File Version information for the assembly consists of the following four values:
Expand All @@ -31,6 +31,6 @@ internal static class VersionInfo
/// Build Number (MMDD)
/// Revision (if any on the same day)
/// </summary>
internal const string FileVersion = "2.17.0716.0";
internal const string FileVersion = "2.17.0927.0";
}
}
4 changes: 2 additions & 2 deletions src/WorkflowActivityLibrary/Common/ExpressionFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2246,7 +2246,7 @@ private object DateTimeFromString()

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));
}
Expand Down Expand Up @@ -4903,7 +4903,7 @@ private object SortList()

list.Sort();

result = this.parameters[0];
result = list;
}
else
{
Expand Down

0 comments on commit 7a80990

Please sign in to comment.