From 416cb730694a8ee9038615f4182c2c0bac006d63 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Thu, 11 Sep 2025 19:57:12 +0200 Subject: [PATCH] FormView: remove unused $exclude and $include field lists --- templates/FormView.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/templates/FormView.php b/templates/FormView.php index 0f1f809..4ae2066 100644 --- a/templates/FormView.php +++ b/templates/FormView.php @@ -19,7 +19,7 @@ class FormView extends SubTemplate $this->title = $title; } - protected function html_content($exclude = [], $include = []) + protected function html_content() { if (!empty($this->title)) echo ' @@ -39,14 +39,6 @@ class FormView extends SubTemplate foreach ($this->form->getFields() as $field_id => $field) { - // Either we have a blacklist - if (!empty($exclude) && in_array($field_id, $exclude)) - continue; - // ... or a whitelist - elseif (!empty($include) && !in_array($field_id, $include)) - continue; - // ... or neither (ha) - $this->renderField($field_id, $field); }