From 9b981b7e032f2c5ad1f08fbb8e604d51870cfb47 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 28 Mar 2024 11:29:32 +0100 Subject: [PATCH] mvc/views - minor regression in https://github.com/opnsense/core/commit/c8adc2921235f8f37b6709343526596e46281440, allownew needs a default --- src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt b/src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt index cad7d9ccb..228423da6 100644 --- a/src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt +++ b/src/opnsense/mvc/app/views/layout_partials/form_input_tr.volt @@ -92,7 +92,7 @@ {{ lang._('Clear All') }} {% if "tokenize" in this_style %}   {{ lang._('Copy') }}    - {% if allownew %} + {% if allownew|default("false") %}    {{ lang._('Text') }} {% endif %} {% endif %}