Skip to content

Commit

Permalink
ImportSourceCoreApi: fix listColumns
Browse files Browse the repository at this point in the history
Prior to this fix, only object_name has been listed (while all properties
have been imported)

fixes Icinga#2763
  • Loading branch information
Thomas-Gelf committed Jun 6, 2023
1 parent 83f9c00 commit abbf580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Director/Import/ImportSourceCoreApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function fetchData()
public function listColumns()
{
$res = $this->fetchData();
if (empty($data)) {
if (empty($res)) {
return array('object_name');
}

Expand Down

0 comments on commit abbf580

Please sign in to comment.