mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-19014 multiplicator and offset are used only for activity grades - must be disabled elsewhere
This commit is contained in:
parent
147cd91c5b
commit
a043086f47
@ -865,6 +865,9 @@ class grade_edit_tree_column_multfactor extends grade_edit_tree_column {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function get_item_cell($item, $params) {
|
public function get_item_cell($item, $params) {
|
||||||
|
if (!$item->is_raw_used()) {
|
||||||
|
return '<td class="cell"> </td>';
|
||||||
|
}
|
||||||
$multfactor = '<input type="text" size="3" id="multfactor'.$item->id.'" name="multfactor_'.$item->id.'" value="'.format_float($item->multfactor).'" />';
|
$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>';
|
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) {
|
public function get_item_cell($item, $params) {
|
||||||
|
if (!$item->is_raw_used()) {
|
||||||
|
return '<td class="cell"> </td>';
|
||||||
|
}
|
||||||
$plusfactor = '<input type="text" size="3" id="plusfactor_'.$item->id.'" name="plusfactor_'.$item->id.'" value="'.format_float($item->plusfactor).'" />';
|
$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>';
|
return '<td class="cell">'.$plusfactor.'</td>';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user