Skip to content

Commit

Permalink
(js) Allow single-day vacation autoreply
Browse files Browse the repository at this point in the history
Fixes #4698
  • Loading branch information
cgx committed Oct 1, 2019
1 parent 6b96f2f commit 9326953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -22,6 +22,7 @@ Bug fixes
- [web] properly encode URL of cards from exteral sources
- [web] restore cards selection after automatic refresh (#4809)
- [web] don't mark draft as deleted when SOGoMailKeepDraftsAfterSend is enabled (#4830)
- [web] allow single-day vacation auto-reply (#4698)
- [core] honor IMAPLoginFieldName also when setting IMAP ACLs
- [core] honor groups when setting IMAP ACLs
- [core] honor "any authenticated user" when setting IMAP ACLs
Expand Down
4 changes: 2 additions & 2 deletions UI/WebServerResources/js/Preferences/PreferencesController.js
Expand Up @@ -500,7 +500,7 @@
d.Vacation.enabled) {
if (d.Vacation.startDateEnabled) {
r = (!d.Vacation.endDateEnabled ||
date.getTime() < d.Vacation.endDate.getTime()) &&
date.getTime() <= d.Vacation.endDate.getTime()) &&
date.getTime() >= today.getTime();
}
}
Expand All @@ -515,7 +515,7 @@
d.Vacation.enabled) {
if (d.Vacation.endDateEnabled) {
r = (!d.Vacation.startDateEnabled ||
date.getTime() > d.Vacation.startDate.getTime()) &&
date.getTime() >= d.Vacation.startDate.getTime()) &&
date.getTime() >= today.getTime();
}
}
Expand Down

0 comments on commit 9326953

Please sign in to comment.