When exporting to portfolio from a module the module instance name is not displayed correctly in the navigation breadcrumb in the header.
Have seen this in core mods (glossary) and also in my own custom module.
Problem lies with lib/portfolio/caller.php portfolio_module_caller_base class.
function get_navigation returns $extranav as a flat associative array.
Needs to be returned as a multi-dimensional array as lib/portfoliolib.php portfolio_export_pagesetup() expects to run through array and get named values from each element.
Not sure which part is at fault (lib or caller) so have not provided patch.
To fix I changed portfolio_module_caller_base.
i.e.
wrap $extranav in array
ln 529: $extranav = array(array('name' => $this->cm->name, 'link' => $this->get_return_url()));
- duplicates
-
MDL-29258 Weird breadcrumb navigation text when exporting a file to a portfolio
-
- Closed
-