Răsfoiți Sursa

#6797: Properly update API select query parameters when values already exist on the element

checktheroads 4 ani în urmă
părinte
comite
5413263eff

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
netbox/project-static/dist/netbox.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
netbox/project-static/dist/netbox.js.map


+ 7 - 0
netbox/project-static/src/select/api.ts

@@ -164,6 +164,13 @@ class APISelect {
       this.updateQueryParams(filter);
       this.updateQueryParams(filter);
     }
     }
 
 
+    // Add any already-resolved key/value pairs to the API query parameters.
+    for (const [key, value] of this.filterParams.entries()) {
+      if (isTruthy(value)) {
+        this.queryParams.set(key, value);
+      }
+    }
+
     for (const filter of this.pathValues.keys()) {
     for (const filter of this.pathValues.keys()) {
       this.updatePathValues(filter);
       this.updatePathValues(filter);
     }
     }

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff