Skip to content

Commit 4ef8d2b

Browse files
committed
Comment filtering of results
1 parent a21506c commit 4ef8d2b

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/Zoho/CRM/Request/Response.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -177,27 +177,27 @@ protected function parseResponseGetRecords()
177177
foreach ($dataElement as $key => $value) {
178178
$key = strpos($key, '_') ? str_replace('_', ' ', $key) : $key;
179179

180-
if (gettype($value) == 'array' && array_key_exists('id', $value)) {
181-
if ($key == 'Owner') {
182-
$key = 'Lead ' . $key;
183-
$record['SMOWNERID'] = $value['id'];
184-
$value = $value['name'];
185-
} elseif ($key == 'Created By') {
186-
$record['SMCREATORID'] = $value['id'];
187-
$value = $value['name'];
188-
} else {
189-
$record[strtoupper(str_replace(' ', '', $key))] = $value['id'];
190-
$value = $value['name'];
191-
}
192-
}
193-
194-
if (gettype($value) == 'array' && empty($value)) {
195-
$value = '';
196-
}
197-
198-
if ($key == 'id') {
199-
$key = 'LEADID';
200-
}
180+
// if (gettype($value) == 'array' && array_key_exists('id', $value)) {
181+
// if ($key == 'Owner') {
182+
// $key = 'Lead ' . $key;
183+
// $record['SMOWNERID'] = $value['id'];
184+
// $value = $value['name'];
185+
// } elseif ($key == 'Created By') {
186+
// $record['SMCREATORID'] = $value['id'];
187+
// $value = $value['name'];
188+
// } else {
189+
// $record[strtoupper(str_replace(' ', '', $key))] = $value['id'];
190+
// $value = $value['name'];
191+
// }
192+
// }
193+
194+
// if (gettype($value) == 'array' && empty($value)) {
195+
// $value = '';
196+
// }
197+
198+
// if ($key == 'id') {
199+
// $key = 'LEADID';
200+
// }
201201

202202
$record[$key] = $value;
203203
}

0 commit comments

Comments
 (0)