Merge branch 'master' of github.com:webnotes/erpnext
diff --git a/home/__init__.py b/home/__init__.py
index e508ac7..9667efd 100644
--- a/home/__init__.py
+++ b/home/__init__.py
@@ -87,5 +87,5 @@
doc = controller.doc
if method in ['on_update', 'on_submit']:
subject, color = feed_dict.get(doc.doctype, [None, None])
- if subject:
+ if subject:
make_feed('', doc.doctype, doc.name, doc.owner, subject % doc.fields, color)
diff --git a/support/doctype/support_ticket/__init__.py b/support/doctype/support_ticket/__init__.py
index 2473bbc..90dc1e3 100644
--- a/support/doctype/support_ticket/__init__.py
+++ b/support/doctype/support_ticket/__init__.py
@@ -112,11 +112,7 @@
except:
d.description = 'Unable to extract message'
d.save(1)
-
else:
- # update feed
- update_feed(d, 'on_update')
-
# send auto reply
if cint(self.email_settings.send_autoreply):
if "mailer-daemon" not in d.raised_by.lower():
diff --git a/support/doctype/support_ticket/support_ticket.py b/support/doctype/support_ticket/support_ticket.py
index 89a58a6..0f4a25e 100644
--- a/support/doctype/support_ticket/support_ticket.py
+++ b/support/doctype/support_ticket/support_ticket.py
@@ -50,11 +50,11 @@
def close_ticket(self):
webnotes.conn.set(self.doc,'status','Closed')
- update_feed(self.doc)
+ update_feed(self)
def reopen_ticket(self):
webnotes.conn.set(self.doc,'status','Open')
- update_feed(self.doc)
+ update_feed(self)
def on_trash(self):
webnotes.conn.sql("""update `tabCommunication` set support_ticket=NULL