From 9c3479f6df9d123f16dce6bef9aef03a0aecc199 Mon Sep 17 00:00:00 2001 From: 4n63lu5 <4n63lu5@users.noreply.github.com> Date: Thu, 2 Jul 2020 15:19:20 +0200 Subject: [PATCH 1/2] Update object.class.php --- inc/object.class.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/inc/object.class.php b/inc/object.class.php index e1f088d9..258d0649 100644 --- a/inc/object.class.php +++ b/inc/object.class.php @@ -582,6 +582,11 @@ function displayField($canedit, $name, $value, $template, $description = []) { $description['Type'] = 'emptyspace'; } + if (isset($searchoption['input_type']) && 'horizontalseparator' === $searchoption['input_type']) { + $this->DisplayHorizontalSeparator($searchoption['name']); + return; + } + $this->startColumn(); echo $searchoption['name']; if (isset($searchoption['autoname']) && $searchoption['autoname'] && $template) { @@ -741,6 +746,15 @@ function closeColumn() { } } + /** + * Display an horizontal separator on all columns + **/ + + function DisplayHorizontalSeparator($name) { + $this->closeColumn(); + echo '