Skip to content
Snippets Groups Projects
Commit 44fb4395 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

ISTWCMS-5754: make menu link CSV title CSV-safe, and use yes/no for 'has children'

parent 38b5bca3
No related branches found
No related tags found
1 merge request!270Feature/istwcms 5754 ebremner csv menu report
......@@ -315,15 +315,15 @@ class UwDownloadCsvController extends ControllerBase {
}
}
// Set the data about the menu link.
// Set the data about the menu link, making sure the title is CSV-safe.
$data = [
'menu_name' => $link->menu_name,
'link_id' => $link->mlid,
'parent_link_id' => $parent_id,
'alias' => $alias,
'link_path' => $link_url,
'title' => '"' . unserialize($link->title) . '"',
'has_children' => $link->has_children,
'title' => '"' . str_replace( '"', '""', unserialize($link->title)) . '"',
'has_children' => $link->has_children == 1 ? 'yes' : 'no',
'p1' => $link->p1,
'p2' => $link->p2,
'p3' => $link->p3,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment