From 51b086081df123f314356ab879418431f9ba8b97 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carlos=20Tim=C3=B3teo?= <ctimoteo@sapo.pt>
Date: Tue, 11 Feb 2014 11:43:37 +0000
Subject: [PATCH] Fix task due remove in dynamic view

---
 kronolith/lib/Ajax/Application/Handler.php |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kronolith/lib/Ajax/Application/Handler.php b/kronolith/lib/Ajax/Application/Handler.php
index ffef561..66990ad 100644
--- a/kronolith/lib/Ajax/Application/Handler.php
+++ b/kronolith/lib/Ajax/Application/Handler.php
@@ -661,6 +661,9 @@ class Kronolith_Ajax_Application_Handler extends Horde_Core_Ajax_Application_Han
                 return $result;
             }
         }
+        else {  //Clean task due (if exists previously)
+            $task['due'] = '';
+        }
 
         if ($task['alarm']['on']) {
             $value = $task['alarm']['value'];
-- 
1.7.1