From 33cd2b5ea7ad640d510a6cfb269e1269bf7d7981 Mon Sep 17 00:00:00 2001 From: Jason SECULA Date: Thu, 23 Apr 2026 16:36:31 +0200 Subject: [PATCH] fixed misplace of +1 for fieldstodisplay --- GLPIAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GLPIAPI.py b/GLPIAPI.py index bfad6eb..0937914 100644 --- a/GLPIAPI.py +++ b/GLPIAPI.py @@ -187,7 +187,7 @@ class GLPIAPI: searchUri += f"&forcedisplay[0]={idFieldNumber}" if(fieldsToDisplay != []): - for i in range(1, len(fieldsToDisplay+1)): + for i in range(1, len(fieldsToDisplay)+1): searchUri += f"&forcedisplay[{i}]={fieldsToDisplay[i]}" search = requests.get(searchUri, headers=self.Headers)