diff --git a/include/generic/SugarWidgets/SugarWidgetSubPanelRemoveButton.php b/include/generic/SugarWidgets/SugarWidgetSubPanelRemoveButton.php index 862134ffcfe..3af83bd0d29 100755 --- a/include/generic/SugarWidgets/SugarWidgetSubPanelRemoveButton.php +++ b/include/generic/SugarWidgets/SugarWidgetSubPanelRemoveButton.php @@ -115,8 +115,7 @@ public function displayList(&$layout_def) $hideremove = true; } - //based on listview since that lets you select records - if ($layout_def['ListView'] && !$hideremove) { + if ($layout_def['EditView'] && !$hideremove) { $retStr = "