MDL-19014 multiplicator and offset are used only for activity grades - must be disabled elsewhere

This commit is contained in:
skodak 2009-04-29 14:43:47 +00:00
parent 147cd91c5b
commit a043086f47

View File

@ -865,6 +865,9 @@ class grade_edit_tree_column_multfactor extends grade_edit_tree_column {
}
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>';
}
@ -891,6 +894,9 @@ class grade_edit_tree_column_plusfactor extends grade_edit_tree_column {
}
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>';