(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
parent
cdc74e4984
commit
a7306a77cb
|
@ -77,9 +77,9 @@ function savePreferences(sender) {
|
||||||
showAlertDialog(_("Please specify an address to which you want to forward your messages."));
|
showAlertDialog(_("Please specify an address to which you want to forward your messages."));
|
||||||
sendForm = false;
|
sendForm = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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
|
||||||
|
|
Loading…
Reference in New Issue