Skip to content

Commit

Permalink
Merge pull request #454 from Djily90/fix_get_active_computers
Browse files Browse the repository at this point in the history
Fix empty data when we try to get active computers
  • Loading branch information
charleneauger committed Feb 20, 2024
2 parents db69c1b + a44574a commit f215b40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Api/Ocsinventory/Restapi/ApiCommon.pm
Expand Up @@ -307,6 +307,10 @@ sub format_query_for_computer_search{
$limit = ${$hash_ref}{$_};
}elsif (lc($_) eq "start"){
$start = ${$hash_ref}{$_};
}elsif (${$hash_ref}{$_} eq "null"){
$field_name = $_;
$field_name =~ tr/a-zA-Z//dc ;
$query_string .= " $field_name IS NULL AND";
}else{
$field_name = $_;
$field_name =~ tr/a-zA-Z//dc ;
Expand Down

0 comments on commit f215b40

Please sign in to comment.