From 7f14404aea46bf6c33a0ae20225510cf430f4135 Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Fri, 27 Sep 2024 11:04:32 +0200
Subject: [PATCH] slice view: show only tags with '/ui' in their category

---
 planetlab/slices/slice.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/planetlab/slices/slice.php b/planetlab/slices/slice.php
index e0868b7..f336462 100644
--- a/planetlab/slices/slice.php
+++ b/planetlab/slices/slice.php
@@ -1202,7 +1202,7 @@ if ($tags_privileges) {
     {
         return array("display" => $tag['tagname'], "value" => $tag['tag_type_id']);
     }
-    $all_tags = $api->GetTagTypes(array("category" => "*slice*", "-SORT" => "+tagname"), array("tagname", "tag_type_id"));
+    $all_tags = $api->GetTagTypes(array("category" => "*slice*/ui*", "-SORT" => "+tagname"), array("tagname", "tag_type_id"));
     if ($profiling) {
         plc_debug_prof('16: tagtypes', count($all_tags));
     }
-- 
2.47.0