message updates in Leave / Expense, catch localstorage error

This commit is contained in:
Rushabh Mehta 2012-12-05 17:10:18 +05:30
parent ed29af98a9
commit 7e5c5aa9f3

View File

@ -105,7 +105,7 @@ cur_frm.cscript.sanctioned_amount = function(doc,cdt,cdn){
}
cur_frm.cscript.on_submit = function(doc, cdt, cdn) {
if(cint(wn.boot.notification_settings.expense_claim)) {
if(cint(wn.boot.notification_settings && wn.boot.notification_settings.expense_claim)) {
cur_frm.email_doc(wn.boot.notification_settings.expense_claim_message);
}
}