From c9467e1ce3258ecc8f8b36447b94c30165368f55 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 1 Dec 2016 11:21:59 -0500 Subject: [PATCH] Validate custom subject for vacation auto-reply --- UI/PreferencesUI/UIxJSONPreferences.m | 2 +- UI/Templates/PreferencesUI/UIxPreferences.wox | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/PreferencesUI/UIxJSONPreferences.m b/UI/PreferencesUI/UIxJSONPreferences.m index 6ef652a07..97ed67c0e 100644 --- a/UI/PreferencesUI/UIxJSONPreferences.m +++ b/UI/PreferencesUI/UIxJSONPreferences.m @@ -345,7 +345,7 @@ static SoProduct *preferencesProduct = nil; // Add the domain's default vacation subject if user has not specified a custom subject vacationOptions = [defaults vacationOptions]; - if (![vacationOptions objectForKey: @"customSubject"] && [domainDefaults vacationDefaultSubject]) + if (![[vacationOptions objectForKey: @"customSubject"] length] && [domainDefaults vacationDefaultSubject]) { if (vacationOptions) vacation = [NSMutableDictionary dictionaryWithDictionary: vacationOptions]; diff --git a/UI/Templates/PreferencesUI/UIxPreferences.wox b/UI/Templates/PreferencesUI/UIxPreferences.wox index 71d7949f0..c6a64996b 100644 --- a/UI/Templates/PreferencesUI/UIxPreferences.wox +++ b/UI/Templates/PreferencesUI/UIxPreferences.wox @@ -839,6 +839,7 @@