Skip to content

Commit

Permalink
Search records undefined index issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pravesh-a committed Dec 2, 2019
1 parent dd3ed7c commit c663ebf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/crm/api/handler/MassEntityAPIHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,9 @@ public function searchRecords($param_map,$type,$search_value)
try {
$this->urlPath = $this->module->getAPIName() . "/search";
$this->requestMethod = APIConstants::REQUEST_METHOD_GET;

$exclusion_array = ["word","phone","email","criteria"];
foreach($exclusion_array as $exclusion){
if($param_map[$exclusion]!==null){
if(array_key_exists($exclusion, $param_map)){
unset($param_map[$exclusion]);
}
}
Expand Down

0 comments on commit c663ebf

Please sign in to comment.