fix: [brood:captureIndividual] Typos preventing calls to correct functions

pull/67/head
mokaddem 2021-06-28 14:04:50 +02:00
parent 31d04b8ff4
commit 15da5d067b
1 changed files with 3 additions and 3 deletions

View File

@ -160,9 +160,9 @@ class BroodsTable extends AppTable
}
$response = $this->HTTPClientGET(sprintf('/individuals/view/%s/index.json', $individual_id), $brood);
if ($response->isOk()) {
$org = $response->getJson();
$this->Individual = TableRegistry::getTableLocator()->get('Individual');
$result = $this->Individual->captureIndividual($individual);
$individual = $response->getJson();
$this->Individuals = TableRegistry::getTableLocator()->get('Individuals');
$result = $this->Individuals->captureIndividual($individual);
return $result;
} else {
return false;