fix: docname should not be compared with doctype for inequality… (#8334)
This commit is contained in:
parent
11fbfeeec1
commit
f61bffdcef
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ frappe.socketio = {
|
|||
doc_open: function(doctype, docname) {
|
||||
// notify that the user has opened this doc, if not already notified
|
||||
if(!frappe.socketio.last_doc
|
||||
|| (frappe.socketio.last_doc[0]!=doctype && frappe.socketio.last_doc[0]!=docname)) {
|
||||
|| (frappe.socketio.last_doc[0]!=doctype && frappe.socketio.last_doc[1]!=docname)) {
|
||||
frappe.socketio.socket.emit('doc_open', doctype, docname);
|
||||
}
|
||||
frappe.socketio.last_doc = [doctype, docname];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue