From 4239d969fe0008bdba9dc9e1a99f14ac48fb37e5 Mon Sep 17 00:00:00 2001 From: Sandeep Dubey Date: Thu, 25 Jul 2019 09:02:49 +0530 Subject: [PATCH] Fixes add message issue. (#7206) --- core/domain/feedback_services.py | 2 +- .../learner-dashboard-page.directive.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/domain/feedback_services.py b/core/domain/feedback_services.py index 68b8916893fb..656430320019 100644 --- a/core/domain/feedback_services.py +++ b/core/domain/feedback_services.py @@ -167,7 +167,7 @@ def create_message( msg.put() # Update the message count in the thread. - if thread.message_count: + if thread.message_count is not None: thread.message_count += 1 else: thread.message_count = ( diff --git a/core/templates/dev/head/pages/learner-dashboard-page/learner-dashboard-page.directive.html b/core/templates/dev/head/pages/learner-dashboard-page/learner-dashboard-page.directive.html index 6ebf570d63f1..e7b15a0dc1cd 100644 --- a/core/templates/dev/head/pages/learner-dashboard-page/learner-dashboard-page.directive.html +++ b/core/templates/dev/head/pages/learner-dashboard-page/learner-dashboard-page.directive.html @@ -739,7 +739,7 @@

<[$ctrl.subscriptionsList.length]>