From a267f075c84614964d76f19353148bda417a874d Mon Sep 17 00:00:00 2001 From: steve-lad <72376554+steve-lad@users.noreply.github.com> Date: Fri, 30 Jul 2021 08:39:53 +0200 Subject: [PATCH] include silent lines in extension view --- sccpManClasses/dbinterface.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sccpManClasses/dbinterface.class.php b/sccpManClasses/dbinterface.class.php index 03c2899..2af41b4 100644 --- a/sccpManClasses/dbinterface.class.php +++ b/sccpManClasses/dbinterface.class.php @@ -56,8 +56,9 @@ class dbinterface switch ($dataid) { case 'extGrid': // only called by getExtensionGrid from hardware.extension.php view - $stmts = $this->db->prepare('SELECT sccpline.name, sccpline.label, sccpbuttonconfig.ref as mac - FROM sccpline LEFT JOIN sccpbuttonconfig ON sccpline.name=sccpbuttonconfig.name ORDER BY sccpline.name'); + $stmts = $this->db->prepare("SELECT sccpline.name, sccpline.label, sccpbuttonconfig.ref as mac + FROM sccpline LEFT JOIN sccpbuttonconfig + ON sccpline.name = TRIM(TRAILING '!silent' FROM sccpbuttonconfig.name) ORDER BY sccpline.name"); break; case 'SccpExtension': if (empty($data['name'])) {