MDL-57273 core_competency: Fatal error in external update_plan

This commit is contained in:
Frederic Massart
2017-01-20 12:56:18 +08:00
committed by Damyon Wiese
parent f5f02ac0d3
commit 268beda8e9
2 changed files with 7 additions and 3 deletions
+2 -3
View File
@@ -2705,9 +2705,8 @@ class external extends external_api {
$params = (object) $params;
$result = api::update_plan($params);
$exporter = plan_exporter($result);
$record = $exporter->export($output);
return external_api::clean_returnvalue(self::update_plan_returns(), $record);
$exporter = new plan_exporter($result, ['template' => $plan->get_template()]);
return $exporter->export($output);
}
/**