From 21373caf92c75d9e98f2a9a08ebe5c6c5a586c83 Mon Sep 17 00:00:00 2001 From: cconard96 Date: Wed, 18 Jul 2018 19:05:30 -0400 Subject: [PATCH] Add special case for knowledgebaseitem due to class naming scheme oddity --- inc/commondbvisible.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/inc/commondbvisible.class.php b/inc/commondbvisible.class.php index 01813f62933..ff3b822e599 100644 --- a/inc/commondbvisible.class.php +++ b/inc/commondbvisible.class.php @@ -276,7 +276,12 @@ public function showVisibility() { echo ""; if ($canedit) { echo ""; - Html::showMassiveActionCheckBox('Profile_' . $this::getType(), $data["id"]); + //Knowledgebase-specific case + if ($this::getType() === "KnowbaseItem") { + Html::showMassiveActionCheckBox($this::getType() . '_Profile', $data["id"]); + } else { + Html::showMassiveActionCheckBox('Profile_' . $this::getType(), $data["id"]); + } echo ""; } echo ""._n('Profile', 'Profiles', 1)."";