Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-40344 navigation: expandable branch id is now properly unique

  • Loading branch information...
commit fb17d60fdeddebcd4f6a79d0a618c7ffe967d274 1 parent 0b8f615
@samhemelryk samhemelryk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/navigationlib.php
View
2  lib/navigationlib.php
@@ -579,7 +579,7 @@ public function get_css_type() {
public function find_expandable(array &$expandable) {
foreach ($this->children as &$child) {
if ($child->nodetype == self::NODETYPE_BRANCH && $child->children->count() == 0 && $child->display) {
- $child->id = 'expandable_branch_'.(count($expandable)+1);
+ $child->id = 'expandable_branch_'.$child->type.'_'.clean_param($child->key, PARAM_ALPHANUMEXT);
$this->add_class('canexpand');
$expandable[] = array('id' => $child->id, 'key' => $child->key, 'type' => $child->type);
}
Please sign in to comment.
Something went wrong with that request. Please try again.