mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-33123 book: Fixing numbering issue with hidden sub-chapters
This commit is contained in:
parent
f8dfdb524b
commit
b0b30cb648
@ -268,7 +268,11 @@ function book_get_toc($chapters, $chapter, $book, $cm, $edit) {
|
||||
}
|
||||
} else {
|
||||
if ($book->numbering == BOOK_NUM_NUMBERS) {
|
||||
$title = "x.x $title";
|
||||
if (empty($chapters[$ch->parent]->hidden)) {
|
||||
$title = "$nch.x $title";
|
||||
} else {
|
||||
$title = "x.x $title";
|
||||
}
|
||||
}
|
||||
$title = '<span class="dimmed_text">'.$title.'</span>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user