Make sure group is there before trying to set its value

This commit is contained in:
Nathan Gray 2014-02-05 20:53:08 +00:00
parent d99b52d48f
commit c771f2fc80

View File

@ -514,7 +514,10 @@ var AppJS = Class.extend(
$j(this).dialog("close");
};
buttons[this.egw.lang("cancel")] = function() {
self.favorite_popup.group.set_value(null);
if(typeof self.favorite_popup.group !== 'undefined' && self.favorite_popup.group.set_value)
{
self.favorite_popup.group.set_value(null);
}
$j(this).dialog("close");
};