Internal: Reset items from legacy breadcrumb when its keys are altered

pull/5209/head
Angel Fernando Quiroz Campos 9 months ago
parent fbcf1d47a0
commit a9c2cf5826
  1. 2
      public/main/inc/lib/display.lib.php
  2. 2
      public/main/inc/lib/template.lib.php

@ -143,7 +143,7 @@ class Display
}
$params['legacy_javascript'] = $htmlHeadXtra;
$params['legacy_breadcrumb'] = json_encode($interbreadcrumb);
$params['legacy_breadcrumb'] = json_encode(array_values($interbreadcrumb));
Template::setVueParams($params);
$content = Container::getTwig()->render($tpl, $params);

@ -1062,7 +1062,7 @@ class Template
}
}
$this->params['legacy_breadcrumb'] = json_encode($interbreadcrumb);
$this->params['legacy_breadcrumb'] = json_encode(array_values($interbreadcrumb));
global $htmlHeadXtra;
$this->params['legacy_javascript'] = $htmlHeadXtra;
}

Loading…
Cancel
Save