@@ 1210-1217 (lines=8) @@ | ||
1207 | $object_description['fields'] = $object_fields; |
|
1208 | } |
|
1209 | ||
1210 | if ( in_array( 'recordTypeInfos', $include, true ) ) { |
|
1211 | if ( isset( $object['data']['recordTypeInfos'] ) && count( $object['data']['recordTypeInfos'] ) > 1 ) { |
|
1212 | foreach ( $object['data']['recordTypeInfos'] as $type ) { |
|
1213 | $object_record_types[ $type['recordTypeId'] ] = $type['name']; |
|
1214 | } |
|
1215 | $object_description['recordTypeInfos'] = $object_record_types; |
|
1216 | } |
|
1217 | } |
|
1218 | } |
|
1219 | ||
1220 | if ( true === $ajax ) { |
|
@@ 1247-1254 (lines=8) @@ | ||
1244 | $object_fields[ $key ] = $value; |
|
1245 | } |
|
1246 | } |
|
1247 | if ( true === $include_record_types ) { |
|
1248 | $object_record_types = array(); |
|
1249 | if ( isset( $object['data']['recordTypeInfos'] ) && count( $object['data']['recordTypeInfos'] ) > 1 ) { |
|
1250 | foreach ( $object['data']['recordTypeInfos'] as $type ) { |
|
1251 | $object_record_types[ $type['recordTypeId'] ] = $type['name']; |
|
1252 | } |
|
1253 | } |
|
1254 | } |
|
1255 | } |
|
1256 | ||
1257 | return $object_fields; |