@@ -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