From 99b74207d767bd7ce0d4aa1e93788da27d0698f6 Mon Sep 17 00:00:00 2001 From: Appleman1234 Date: Tue, 6 Jul 2021 19:44:38 +1000 Subject: Fixes for counting Uncountable error in mod templates by using twig count explicitly --- templates/mod/config-editor.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/mod/config-editor.html') diff --git a/templates/mod/config-editor.html b/templates/mod/config-editor.html index ebf4202b..411d55e6 100644 --- a/templates/mod/config-editor.html +++ b/templates/mod/config-editor.html @@ -23,7 +23,7 @@ {% trans 'Description' %} {% for var in conf if var.type != 'array' %} - {% if var.name and var.name|length == 1 %} + {% if var.name|count == 1 %} {% set name = 'cf_' ~ var.name %} {% else %} {% set name = 'cf_' ~ var.name|join('/') %} @@ -31,7 +31,7 @@ - {% if var.name and var.name|length == 1 %} + {% if var.name|count == 1 %} {{ var.name }} {% else %} {{ var.name|join(' → ') }} -- cgit v1.3