mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
#20146: Projections: InBetween for offset dates is incorrectly handing values
Work Item: 20146
This commit is contained in:

committed by
Sebastien Ros

parent
b8ebd5124e
commit
70d49755f3
@@ -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));
|
||||
|
Reference in New Issue
Block a user