(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.
This commit is contained in:
Francis Lachapelle 2015-04-16 15:27:55 -04:00
parent cdc74e4984
commit a7306a77cb

View file

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