|
@@ -62,7 +62,7 @@ discard block |
|
|
block discarded – undo |
|
62
|
62
|
public function findOneByID($moduleName, $entityID, array $select = [ ]) |
|
63
|
63
|
{ |
|
64
|
64
|
$entityID = $this->wsClient->modules->getTypedID($moduleName, $entityID); |
|
65
|
|
- $record = $this->wsClient->invokeOperation('retrieve', ['id' => $entityID], 'GET'); |
|
|
65
|
+ $record = $this->wsClient->invokeOperation('retrieve', [ 'id' => $entityID ], 'GET'); |
|
66
|
66
|
if (!is_array($record)) |
|
67
|
67
|
return null; |
|
68
|
68
|
|
|
@@ -100,7 +100,7 @@ discard block |
|
|
block discarded – undo |
|
100
|
100
|
return null; |
|
101
|
101
|
} |
|
102
|
102
|
|
|
103
|
|
- $record = $records[0]; |
|
|
103
|
+ $record = $records[ 0 ]; |
|
104
|
104
|
return (!is_array($record) || !isset($record[ 'id' ]) || empty($record[ 'id' ])) |
|
105
|
105
|
? null |
|
106
|
106
|
: $record[ 'id' ]; |
Please login to merge, or discard this patch.