Fix deleting scheduled import/exports

This commit is contained in:
Nathan Gray 2011-12-09 16:25:17 +00:00
parent 9ae32b68a0
commit 68a970f5d6

View File

@ -30,10 +30,12 @@
} }
public function index($content = array()) { public function index($content = array()) {
foreach($content['scheduled'] as $row)
if($content['scheduled']['delete']) { {
$key = key($content['scheduled']['delete']); if($row['delete']) {
ExecMethod('phpgwapi.asyncservice.cancel_timer', $key); $key = key($row['delete']);
ExecMethod('phpgwapi.asyncservice.cancel_timer', $key);
}
} }
$async_list = ExecMethod('phpgwapi.asyncservice.read', 'importexport%'); $async_list = ExecMethod('phpgwapi.asyncservice.read', 'importexport%');
$data = array(); $data = array();