Merge pull request #2809 from gonzalezcalleja/master

Avoid duplicate monitors in API
Fixes #2797
This commit is contained in:
Isaac Connor 2020-01-15 16:14:43 -05:00 committed by GitHub
commit f5ce39ae24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ class MonitorsController extends AppController {
'Groups_Monitors.MonitorId = Monitor.Id',
),
),
)
),
'group' => '`Monitor`.`Id`',
);
$monitors = $this->Monitor->find('all',$find_array);
$this->set(array(