From c58ebacf0897d2c010f7f76204297da0089b52c9 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 16 Jan 2014 12:07:45 +0000 Subject: [PATCH] fix cannot set property read of undefined --- mail/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 2527ff480c..e58df8a6f0 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -625,7 +625,7 @@ app.classes.mail = AppJS.extend( messages['msg'] = [_id]; // When body is requested, mail is marked as read by the mail server. Update UI to match. - dataElem.data.flags.read = 'read'; + if (typeof dataElem != 'undefined' && typeof dataElem.data != 'undefined' && typeof dataElem.data.flags != 'undefined' && typeof dataElem.data.flags.read != 'undefined') dataElem.data.flags.read = 'read'; this.mail_removeRowClass(messages,'unseen'); // var request = new egw_json_request('mail.mail_ui.ajax_loadEmailBody',[_id]); // request.sendRequest(false);