fix query
authorAlan <alan@roojs.com>
Wed, 29 Mar 2023 08:20:23 +0000 (16:20 +0800)
committerAlan <alan@roojs.com>
Wed, 29 Mar 2023 08:20:23 +0000 (16:20 +0800)
DataObjects/Core_company.php

index c9b31ee..c1b9a56 100644 (file)
@@ -79,7 +79,7 @@ class Pman_Core_DataObjects_Core_Company extends DB_DataObject
         }
         if (!empty($q['query']['comptype'])) {
            
-            $this->whereAddIn('comptype', explode(',', $q['query']['comptype']), 'string');
+            $this->whereAddIn($tn.'.comptype', explode(',', $q['query']['comptype']), 'string');
             
         }