#20146: Projections: InBetween for offset dates is incorrectly handing values

Work Item: 20146
This commit is contained in:
Vladimir Makaev 2013-09-24 21:25:24 -07:00 committed by Sebastien Ros
parent b8ebd5124e
commit 70d49755f3

View File

@ -142,8 +142,8 @@ namespace Orchard.Projections.FilterEditors.Forms {
}
else {
if (op == DateTimeOperator.Between || op == DateTimeOperator.NotBetween) {
min = ApplyDelta(now, formState.MinUnit, Int32.Parse(formState.Min));
max = ApplyDelta(now, formState.MinUnit, Int32.Parse(formState.Min));
min = ApplyDelta(now, formState.MinUnit.Value, Int32.Parse(formState.Min.Value));
max = ApplyDelta(now, formState.MaxUnit.Value, Int32.Parse(formState.Max.Value));
}
else {
min = max = ApplyDelta(now, Convert.ToString(formState.ValueUnit), Convert.ToInt32(formState.Value));