From b389382181b87d96a4c2cf331a315bd868e90249 Mon Sep 17 00:00:00 2001 From: raja-7453 Date: Thu, 3 Sep 2020 10:15:22 +0530 Subject: [PATCH] Bug in selection of inventory line items fixed --- src/crm/api/handler/EntityAPIHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crm/api/handler/EntityAPIHandler.php b/src/crm/api/handler/EntityAPIHandler.php index 901f2090..66ae4392 100644 --- a/src/crm/api/handler/EntityAPIHandler.php +++ b/src/crm/api/handler/EntityAPIHandler.php @@ -422,7 +422,7 @@ public function setRecordProperties($recordDetails) foreach ($recordDetails as $key => $value) { if ("id" == $key) { $this->record->setEntityId($value); - } else if ("Product_Details" == $key && array_key_exists($this->record->getModuleApiName(), APIConstants::INVENTORY_MODULES)) { + } else if ("Product_Details" == $key && in_array($this->record->getModuleApiName(), APIConstants::INVENTORY_MODULES)) { $this->setInventoryLineItems($value); } else if ("Participants" == $key && $this->record->getModuleApiName() == "Events") { $this->setParticipants($value);