Skip to content

Commit

Permalink
Add special case for knowledgebaseitem due to class naming scheme oddity
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 authored and trasher committed Jul 26, 2018
1 parent dc3deb6 commit 21373ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion inc/commondbvisible.class.php
Expand Up @@ -276,7 +276,12 @@ public function showVisibility() {
echo "<tr class='tab_bg_1'>";
if ($canedit) {
echo "<td>";
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 "</td>";
}
echo "<td>"._n('Profile', 'Profiles', 1)."</td>";
Expand Down

0 comments on commit 21373ca

Please sign in to comment.