Minor - format code

pull/3937/head^2
Julio Montoya 4 years ago
parent 41963f1ddd
commit c7bf620fb3
  1. 4
      main/gradebook/gradebook_add_eval.php

@ -1,4 +1,5 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
require_once __DIR__.'/../inc/global.inc.php'; require_once __DIR__.'/../inc/global.inc.php';
@ -49,7 +50,6 @@ if ($form->validate()) {
$parent_cat = Category::load($values['hid_category_id']); $parent_cat = Category::load($values['hid_category_id']);
$global_weight = $cat[0]->get_weight(); $global_weight = $cat[0]->get_weight();
//$values['weight'] = $values['weight_mask']/$global_weight*$parent_cat[0]->get_weight();
$values['weight'] = $values['weight_mask']; $values['weight'] = $values['weight_mask'];
$eval->set_weight($values['weight']); $eval->set_weight($values['weight']);
@ -63,8 +63,6 @@ if ($form->validate()) {
$logInfo = [ $logInfo = [
'tool' => TOOL_GRADEBOOK, 'tool' => TOOL_GRADEBOOK,
'tool_id' => 0,
'tool_id_detail' => 0,
'action' => 'new-eval', 'action' => 'new-eval',
'action_details' => 'selectcat='.$eval->get_category_id(), 'action_details' => 'selectcat='.$eval->get_category_id(),
]; ];

Loading…
Cancel
Save