MDL-51856 tool_lp: Fixing PHPUnit notices and plan errors
This commit is contained in:
@@ -1337,7 +1337,7 @@ class external extends external_api {
|
||||
$includerelated = new external_value(
|
||||
PARAM_BOOL,
|
||||
'Include or not related competencies',
|
||||
VALUE_OPTIONAL,
|
||||
VALUE_DEFAULT,
|
||||
false
|
||||
);
|
||||
|
||||
|
||||
@@ -87,8 +87,8 @@ class plans_page implements renderable, templatable {
|
||||
if ($this->plans) {
|
||||
foreach ($this->plans as $plan) {
|
||||
$record = $plan->to_record();
|
||||
$record['statusname'] = $plan->get_statusname();
|
||||
$record['usercanupdate'] = $plan->can_update();
|
||||
$record->statusname = $plan->get_statusname();
|
||||
$record->usercanupdate = $plan->can_update();
|
||||
$data->plans[] = $record;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user