Skip to content

Commit

Permalink
MDL-79555 core_grades: Remove copy pasted code.
Browse files Browse the repository at this point in the history
Seems that data from form was overridden for no reason.
  • Loading branch information
ilyatregubov committed Oct 2, 2023
1 parent 43d5aec commit f591de2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions grade/classes/form/add_category.php
Expand Up @@ -604,12 +604,6 @@ public function process_dynamic_submission(): array {
$local = $this->get_gradecategory();
$gradecategory = $local['gradecategory'];

// GRADE ITEM.
// Grade item data saved with prefix "grade_item_".
$data->grade_item_gradepass = $local['categoryitem']->grade_item_gradepass;
$data->grade_item_grademax = $local['categoryitem']->grade_item_grademax;
$data->grade_item_grademin = $local['categoryitem']->grade_item_grademin;

grade_edit_tree::update_gradecategory($gradecategory, $data);

return [
Expand Down

0 comments on commit f591de2

Please sign in to comment.