(fix) JavaScript error when saving preferences

The error was occuring when the user enabled forwarding but no domains
constraints were defined in the SOGo's configuration.
pull/77/merge
Francis Lachapelle 2015-04-16 15:27:55 -04:00
parent cdc74e4984
commit a7306a77cb
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ function savePreferences(sender) {
}
// We check if we can only to internal/external addresses.
var constraints = parseInt(forwardConstraints);
var constraints = (typeof forwardConstraints != "undefined") && parseInt(forwardConstraints);
if (constraints > 0) {
// We first extract the list of 'known domains' to SOGo