From c4a3c2266622ceed6b25c81015fc5ac51701b23a Mon Sep 17 00:00:00 2001 From: satish <satish.dvnk@vtiger.com> Date: Thu, 26 Oct 2017 15:23:34 +0530 Subject: [PATCH] Inventory hidden fields are displaying (image, purchase cost, margin) --- modules/Settings/LayoutEditor/models/Field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Settings/LayoutEditor/models/Field.php b/modules/Settings/LayoutEditor/models/Field.php index 2d003278..25f7b080 100644 --- a/modules/Settings/LayoutEditor/models/Field.php +++ b/modules/Settings/LayoutEditor/models/Field.php @@ -308,7 +308,7 @@ class Settings_LayoutEditor_Field_Model extends Vtiger_Field_Model { $blockId = array($blockId); } - $query = 'SELECT * FROM vtiger_field WHERE block IN('. generateQuestionMarks($blockId) .') AND vtiger_field.displaytype IN (1,2,4) ORDER BY sequence'; + $query = 'SELECT * FROM vtiger_field WHERE block IN('. generateQuestionMarks($blockId) .') AND vtiger_field.displaytype IN (1,2,4,5) ORDER BY sequence'; $result = $db->pquery($query, $blockId); $numOfRows = $db->num_rows($result); -- GitLab