From b78a9512d8046295a5642fb988afe8975fee73c6 Mon Sep 17 00:00:00 2001 From: Jason Secula Date: Mon, 30 Mar 2026 17:10:32 +0200 Subject: [PATCH] Changed GetSearchOptions to use uid instead of name (immuable when changing language) --- GLPIAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GLPIAPI.py b/GLPIAPI.py index 39b0f0e..28f3bf8 100644 --- a/GLPIAPI.py +++ b/GLPIAPI.py @@ -188,7 +188,7 @@ class GLPIAPI: searchOptions = searchOptions.json() if(fieldName != None): for k,v in searchOptions.items(): - if(v['name'].lower() == fieldName.lower()): + if('uid' in v.keys() and v['uid'].lower() == fieldName.lower()): return {k : searchOptions[k]} return searchOptions return searchOptions.status_code