Przeglądaj źródła

BiAudit::reverseSearch bug fix

Mariusz Muszyński 8 lat temu
rodzic
commit
c65ee478b5
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      SE/se-lib/Route/UrlAction/BiAuditGenerate.php

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

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