Commit d39685a6 authored by Ivan Del Pino's avatar Ivan Del Pino Committed by Rafael Jesus Hernández Vasquez
Browse files

feat(search): add item type as parameter


Signed-off-by: default avatarIvan Del Pino <idelpino@teclib.com>
parent 0c67a985
......@@ -605,7 +605,7 @@ public class GLPI extends ServiceGenerator {
}
public void listSearchOptions(Map<String, String> query, final ResponseHandle<JsonObject, String> callback) {
interfaces.getListSearchOption(getHeader(), "Users", query).enqueue(new Callback<JsonObject>() {
interfaces.getListSearchOption(getHeader(), itemType.Computer.name(), query).enqueue(new Callback<JsonObject>() {
@Override
public void onResponse(Call<JsonObject> call, Response<JsonObject> response) {
if (response.isSuccessful()) {
......
......@@ -52,7 +52,7 @@ public class GetListSearchOptionsQuery {
Map<String, String> map = new HashMap<>();
if (raw != null) {
map.put("raw", raw.toString());
map.put("raw", raw);
}
return map;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment