Bläddra i källkod

Merge branch '20250522_diywebfr'

15313670163 2 dagar sedan
förälder
incheckning
57db50a156
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      app/JsonRpc/PublicRpcService.php

+ 4 - 4
app/JsonRpc/PublicRpcService.php

@@ -1251,12 +1251,12 @@ class PublicRpcService implements PublicRpcServiceInterface
             array_push($where, ['component.component_name', 'like', '%' . $data['component_name'] . '%']);
         }
         if (isset($data['width']) && !empty($data['width']) && isset($data['height']) && !empty($data['height'])) {
-            array_push($where, ['size.width', 'like', '%' . $data['width'] . '%']);
-            array_push($where, ['size.height', 'like', '%' . $data['height'] . '%']);
+            array_push($where, ['component.component_width', 'like', '%' . $data['width'] . '%']);
+            array_push($where, ['component.component_height', 'like', '%' . $data['height'] . '%']);
         } else if (isset($data['width']) && !empty($data['width'])) {
-            array_push($where, ['size.width', 'like', '%' . $data['width'] . '%']);
+            array_push($where, ['component.component_width', 'like', '%' . $data['width'] . '%']);
         } else if (isset($data['height']) && !empty($data['height'])) {
-            array_push($where, ['size.height', 'like', '%' . $data['height'] . '%']);
+            array_push($where, ['component.component_height', 'like', '%' . $data['height'] . '%']);
         } else {
         }
         if(isset($data['type_id']) && !empty($data['type_id'])){