Skip to content

Commit 441bbf3

Browse files
author
Mohamed Abdallah
committed
fix by improve checking script
1 parent af56767 commit 441bbf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Popup.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
} else {
205205
$crmalias = CRMEntity::getcrmEntityTableAlias('ProductComponent');
206206
$result = $adb->pquery("SELECT presence FROM `vtiger_tab` WHERE `name` = ? AND `presence` = ?", array('ProductComponent', 1));
207-
if ($result) {
207+
if (!vtlib_isModuleActive('ProductComponent')) {
208208
$where_relquery.=" and vtiger_products.discontinued<>0";
209209
} else {
210210
$where_relquery.=" and vtiger_products.discontinued<>0 AND vtiger_products.productid NOT IN (SELECT distinct topdo

0 commit comments

Comments
 (0)