Fixed condition check problem introduced with adjustments to setting the returning item bit. Fixes bug . Commit ready to merge.

- Legacy-Id: 8444
This commit is contained in:
Robert Sparks 2014-10-20 13:31:23 +00:00
parent c4fb9b5bd5
commit 41f0905689

View file

@ -859,7 +859,7 @@ def telechat_date(request, name):
initial_returning_item = bool(e and e.returning_item)
prompts = []
if e and doc.type.slug != 'charter':
if e and e.telechat_date and doc.type.slug != 'charter':
if e.telechat_date==datetime.date.today():
prompts.append( "This document is currently scheduled for today's telechat. "
+"Please set the returning item bit carefully.")