diff --git a/adm/style/consentmanager_acp.html b/adm/style/consentmanager_acp.html
index 4649c7d..c4a937a 100644
--- a/adm/style/consentmanager_acp.html
+++ b/adm/style/consentmanager_acp.html
@@ -51,13 +51,15 @@
{{ lang('WARNING') }}
{ id: 'media', label: lang('CONSENTMANAGER_CATEGORY_MEDIA') }
] %}
{% set category_has_services = false %}
- {% for service in services if service.category == category.id %}
- {% if not category_has_services %}
- {% set category_has_services = true %}
- {{ category.label }}
-
+ {% for service in services %}
+ {% if service.category == category.id %}
+ {% if not category_has_services %}
+ {% set category_has_services = true %}
+ {{ category.label }}
+
+ {% endif %}
+ - {{ service.label }} » {{ service.id }}
{% endif %}
- - {{ service.label }} » {{ service.id }}
{% endfor %}
{% if category_has_services %}
diff --git a/tests/controller/acp_controller_test.php b/tests/controller/acp_controller_test.php
index 1f7e43a..7c076e8 100644
--- a/tests/controller/acp_controller_test.php
+++ b/tests/controller/acp_controller_test.php
@@ -69,7 +69,6 @@ protected function setUp(): void
'user_form_salt' => 'form-salt',
];
$this->user->session_id = 'session-id';
- $this->user->lang = $this->language->get_lang_array();
$this->template = $this->createMock('\phpbb\template\template');
$this->acp_manager = $this->createMock('\phpbb\consentmanager\service\acp_manager');
diff --git a/tests/service/acp_manager_test.php b/tests/service/acp_manager_test.php
index e3bff43..ae0f1c9 100644
--- a/tests/service/acp_manager_test.php
+++ b/tests/service/acp_manager_test.php
@@ -582,7 +582,7 @@ public function test_stream_logs_csv_row_format_is_correct()
$content = stream_get_contents($handle);
fclose($handle);
- $row = str_getcsv(trim($content));
+ $row = str_getcsv(trim($content), ',', '"', '\\');
self::assertCount(4, $row);
// anonymized_id: 64-char hex
@@ -627,7 +627,7 @@ public function test_stream_logs_csv_sanitizes_formula_injection_in_categories()
$handle = fopen('php://memory', 'wb+');
$this->create_manager(1, 'session')->stream_logs_csv($handle);
rewind($handle);
- $row = str_getcsv(trim(stream_get_contents($handle)));
+ $row = str_getcsv(trim(stream_get_contents($handle)), ',', '"', '\\');
fclose($handle);
// category cell must be prefixed with a tab to defuse the formula