Преглед на файлове

Usprawnienie wyszukiwania powiązań

Mariusz Muszyński преди 8 години
родител
ревизия
2e01b6361b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      SE/se-lib/Route/UrlAction/BiAuditGenerate.php

+ 1 - 1
SE/se-lib/Route/UrlAction/BiAuditGenerate.php

@@ -2410,7 +2410,7 @@ class BiAuditPowiazania {
 		}
 
 		if (!isset($this->nodes[$ID][$relation])) {
-			$where = $relation ? "and ({$relation} & ref.RELATION_ID) != " . ($this->reverseSearch ? "ref.RELATION_ID" : $relation) : "";
+			$where = $relation ? "and ({$relation} & ref.RELATION_ID) = 0" : "";
 			$query = "{$this->query} = {$ID} {$where}";
 			$this->nodes[$ID][$relation] = DB::getPDO()->fetchAll($query);
 		}