support ticket fix

This commit is contained in:
Rushabh Mehta 2012-12-28 13:26:08 +05:30
parent d2744e7461
commit 056d1723e7
2 changed files with 1 additions and 5 deletions

View File

@ -87,5 +87,5 @@ def update_feed(controller, method=None):
doc = controller.doc doc = controller.doc
if method in ['on_update', 'on_submit']: if method in ['on_update', 'on_submit']:
subject, color = feed_dict.get(doc.doctype, [None, None]) 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) make_feed('', doc.doctype, doc.name, doc.owner, subject % doc.fields, color)

View File

@ -112,11 +112,7 @@ class SupportMailbox(POP3Mailbox):
except: except:
d.description = 'Unable to extract message' d.description = 'Unable to extract message'
d.save(1) d.save(1)
else: else:
# update feed
update_feed(d, 'on_update')
# send auto reply # send auto reply
if cint(self.email_settings.send_autoreply): if cint(self.email_settings.send_autoreply):
if "mailer-daemon" not in d.raised_by.lower(): if "mailer-daemon" not in d.raised_by.lower():