MDL-46138 tasks: The adhoc task is being too helpful with json_encoding/decoding.

This commit is contained in:
Damyon Wiese
2014-07-11 09:45:27 +08:00
parent b4d0a4479c
commit f72a23d69b
2 changed files with 19 additions and 2 deletions
+2 -2
View File
@@ -220,7 +220,7 @@ class manager {
$record->blocking = $task->is_blocking();
$record->nextruntime = $task->get_next_run_time();
$record->faildelay = $task->get_fail_delay();
$record->customdata = $task->get_custom_data();
$record->customdata = $task->get_custom_data_as_string();
return $record;
}
@@ -254,7 +254,7 @@ class manager {
$task->set_fail_delay($record->faildelay);
}
if (isset($record->customdata)) {
$task->set_custom_data($record->customdata);
$task->set_custom_data_as_string($record->customdata);
}
return $task;