Skip to content

Commit

Permalink
MDL-70223 h5p: fix invalid id when adding h5p activity
Browse files Browse the repository at this point in the history
  • Loading branch information
aya-saad1 committed Jun 5, 2022
1 parent 5500d14 commit ec1e17a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contentbank/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
$contextid = required_param('contextid', PARAM_INT);
$pluginname = required_param('plugin', PARAM_PLUGIN);
$id = optional_param('id', null, PARAM_INT);
$library = optional_param('library', null, PARAM_RAW);

$context = context::instance_by_id($contextid, MUST_EXIST);

$cb = new \core_contentbank\contentbank();
Expand Down Expand Up @@ -79,7 +81,8 @@
'contextid' => $contextid,
'plugin' => $pluginname,
'id' => $id,
'heading' => $heading
'heading' => $heading,
'library' => $library
];

$title = get_string('contentbank');
Expand Down

0 comments on commit ec1e17a

Please sign in to comment.