Skip to content

Commit

Permalink
MDL-19014 multiplicator and offset are used only for activity grades …
Browse files Browse the repository at this point in the history
…- must be disabled elsewhere
  • Loading branch information
skodak committed Apr 29, 2009
1 parent 147cd91 commit a043086
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions grade/edit/tree/lib.php
Expand Up @@ -865,6 +865,9 @@ public function get_category_cell($category, $levelclass, $params) {
}

public function get_item_cell($item, $params) {
if (!$item->is_raw_used()) {
return '<td class="cell">&nbsp;</td>';
}
$multfactor = '<input type="text" size="3" id="multfactor'.$item->id.'" name="multfactor_'.$item->id.'" value="'.format_float($item->multfactor).'" />';
return '<td class="cell">'.$multfactor.'</td>';
}
Expand All @@ -891,6 +894,9 @@ public function get_category_cell($category, $levelclass, $params) {
}

public function get_item_cell($item, $params) {
if (!$item->is_raw_used()) {
return '<td class="cell">&nbsp;</td>';
}
$plusfactor = '<input type="text" size="3" id="plusfactor_'.$item->id.'" name="plusfactor_'.$item->id.'" value="'.format_float($item->plusfactor).'" />';
return '<td class="cell">'.$plusfactor.'</td>';

Expand Down

0 comments on commit a043086

Please sign in to comment.