fix: [alignments] missing contains added

cli-modification-summary
iglocska 2022-09-19 02:17:36 +02:00
parent fd6d3466d7
commit 760badd268
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ class AlignmentsController extends AppController
$alignments = $query->all(); $alignments = $query->all();
return $this->RestResponse->viewData($alignments, 'json'); return $this->RestResponse->viewData($alignments, 'json');
} else { } else {
$this->paginate['contain'] = ['Individuals', 'Organisations'];
$alignments = $this->paginate($query); $alignments = $this->paginate($query);
$this->set('data', $alignments); $this->set('data', $alignments);
$this->set('metaGroup', 'ContactDB'); $this->set('metaGroup', 'ContactDB');