From fad64be85d8c8bd997f90691f5e9780b7b5a7051 Mon Sep 17 00:00:00 2001 From: jengo Date: Thu, 26 Apr 2001 15:06:07 +0000 Subject: [PATCH] Made sub categorys show the parent category with a :: seperating them, this are only test changes --- preferences/categories.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/preferences/categories.php b/preferences/categories.php index 62d0b8a48f..23d126ea9c 100644 --- a/preferences/categories.php +++ b/preferences/categories.php @@ -93,7 +93,11 @@ $cat_id = $categories[$i]['id']; $owner = $categories[$i]['owner']; $space = '  '; - if ($categories[$i]['parent'] > 0) { $name = $space . $phpgw->strip_html($categories[$i]['name']); } + if ($categories[$i]['parent'] > 0) + { + $parent_data = $c->return_single($categories[$i]['parent']); + $name = $space . $phpgw->strip_html($parent_data[0]['name'] . ' :: ' . $categories[$i]['name']); + } $descr = $phpgw->strip_html($categories[$i]['description']); if (! $descr) { $descr = ' '; }