mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
fixed issue MDL-14531
added an option to switch autonumbering on or off
This commit is contained in:
parent
914061abe1
commit
efc5916754
22 changed files with 74 additions and 52 deletions
|
@ -169,7 +169,13 @@
|
|||
$itemclass = 'feedback_item_'.$item->typ;
|
||||
//get the instance of the item-class
|
||||
$itemobj = new $itemclass();
|
||||
$itemnr = $itemobj->print_analysed($item, $itemnr, $mygroupid, $coursefilter);
|
||||
$itemnr++;
|
||||
if($feedback->autonumbering) {
|
||||
$printnr = $itemnr.'.';
|
||||
} else {
|
||||
$printnr = '';
|
||||
}
|
||||
$itemobj->print_analysed($item, $printnr, $mygroupid, $coursefilter);
|
||||
if (eregi('rated$', $item->typ)) {
|
||||
echo '<tr><td colspan="2"><a href="#" onclick="setcourseitemfilter('.$item->id.',\''.$item->typ.'\'); return false;">'.
|
||||
get_string('sort_by_course', 'feedback').'</a></td></tr>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue