Skip to content

Commit

Permalink
Bug in selection of inventory line items fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
raja-7453 committed Sep 3, 2020
1 parent 4cd59fd commit b389382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crm/api/handler/EntityAPIHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b389382

Please sign in to comment.