From 9aeabebe456951992f661f3e9d8c1cc8b68cde28 Mon Sep 17 00:00:00 2001 From: Jared Hancock <gravydish@gmail.com> Date: Mon, 3 Sep 2012 14:41:55 -0500 Subject: [PATCH] Support nested help topics --- include/ajax.reports.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/ajax.reports.php b/include/ajax.reports.php index 9d002eb52..75394d623 100644 --- a/include/ajax.reports.php +++ b/include/ajax.reports.php @@ -54,7 +54,9 @@ class OverviewReportAjaxAPI extends AjaxController { "table" => TOPIC_TABLE, "pk" => "topic_id", "sort" => 'ORDER BY topic', - "fields" => "T1.topic", + "fields" => "CONCAT_WS(' / '," + ."(SELECT P.topic FROM ".TOPIC_TABLE." P WHERE P.topic_id = T1.topic_pid)," + ."T1.topic)", "headers" => array('Help Topic') ), # XXX: This will be relative to permissions based on the -- GitLab