diff options
author | zotlabs <mike@macgirvin.com> | 2017-08-23 23:59:05 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-08-23 23:59:05 -0700 |
commit | 85f24c292f071b9a83aea0aa122231afd57e7f73 (patch) | |
tree | 754d3dcdc808ffccd69a56fa92f83d2c96733e66 /Zotlabs | |
parent | 1c4629f5e1b7733472e2f721e5a4080734b9e2d5 (diff) | |
download | volse-hubzilla-85f24c292f071b9a83aea0aa122231afd57e7f73.tar.gz volse-hubzilla-85f24c292f071b9a83aea0aa122231afd57e7f73.tar.bz2 volse-hubzilla-85f24c292f071b9a83aea0aa122231afd57e7f73.zip |
last remaining task in tasklist was not removed from view when 'completed'
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Tasks.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Tasks.php b/Zotlabs/Module/Tasks.php index c8deb11bf..0709f31f6 100644 --- a/Zotlabs/Module/Tasks.php +++ b/Zotlabs/Module/Tasks.php @@ -19,8 +19,8 @@ class Tasks extends \Zotlabs\Web\Controller { $arr['all'] = 1; $x = tasks_fetch($arr); + $x['html'] = ''; if($x['tasks']) { - $x['html'] = ''; foreach($x['tasks'] as $y) { $x['html'] .= '<div class="tasklist-item"><input type="checkbox" onchange="taskComplete(' . $y['id'] . '); return false;" /> ' . $y['summary'] . '</div>'; } @@ -69,6 +69,7 @@ class Tasks extends \Zotlabs\Web\Controller { if($x) $ret['success'] = true; } + json_return_and_die($ret); } |