Searches for companies like sth and not = sth.
authorStéphane Jacob <sj@m4x.org>
Fri, 16 Jul 2010 10:00:19 +0000 (12:00 +0200)
committerStéphane Jacob <sj@m4x.org>
Fri, 16 Jul 2010 10:10:20 +0000 (12:10 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
classes/userfilter.php

index 058def4..e988793 100644 (file)
@@ -939,7 +939,7 @@ class UFC_Job_Company implements UserFilterCondition
     public function buildCondition(PlFilter &$uf)
     {
         $sub = $uf->addJobCompanyFilter();
-        $cond  = $sub . '.' . $this->type . ' = ' . XDB::format('{?}', $this->value);
+        $cond  = $sub . '.' . $this->type . XDB::formatWildcards(XDB::WILDCARD_CONTAINS, $this->value);
         return $cond;
     }
 }