Skip to content

Commit

Permalink
Merge branch 'MDL-79493-master' of https://github.com/ilyatregubov/mo…
Browse files Browse the repository at this point in the history
  • Loading branch information
HuongNV13 committed Sep 27, 2023
2 parents 9a4a2df + 0f4efff commit 48f29f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions grade/edit/tree/lib.php
Expand Up @@ -276,7 +276,7 @@ public function build_html_tree($element, $totals, $parents, $level, &$row_count
}
$categoryrow->attributes['data-aggregation'] = $category->aggregation;
$categoryrow->attributes['data-grademax'] = $category->grade_item->grademax;
$categoryrow->attributes['data-aggregationcoef'] = $category->grade_item->aggregationcoef;
$categoryrow->attributes['data-aggregationcoef'] = floatval($category->grade_item->aggregationcoef);
$categoryrow->attributes['data-itemid'] = $category->grade_item->id;
$categoryrow->attributes['data-hidden'] = 'false';
foreach ($rowclasses as $class) {
Expand Down Expand Up @@ -350,7 +350,7 @@ public function build_html_tree($element, $totals, $parents, $level, &$row_count
} else {
$gradeitemrow->attributes['data-parent-category'] = $parent_eid;
$gradeitemrow->attributes['data-grademax'] = $object->grademax;
$gradeitemrow->attributes['data-aggregationcoef'] = $object->aggregationcoef;
$gradeitemrow->attributes['data-aggregationcoef'] = floatval($object->aggregationcoef);
}
foreach ($rowclasses as $class) {
$gradeitemrow->attributes['class'] .= ' ' . $class;
Expand Down
3 changes: 2 additions & 1 deletion grade/tests/behat/grade_edit_tree_bulk_actions.feature
Expand Up @@ -253,7 +253,8 @@ Feature: Teachers can perform bulk actions on grade items and categories in the
And I press tab
And the focused element is "Move" "button" in the "Move items" "dialogue"
When I press the enter key
And I wait to be redirected
And I wait until the page is ready
And I wait "2" seconds
And I press tab key in "region-main" "region"
# Confirm that 'Grade item 1' and 'Grade item 2' have been moved to 'Category 3'
And I click on grade item menu "Grade item 1" of type "gradeitem" on "setup" page
Expand Down

0 comments on commit 48f29f7

Please sign in to comment.