Просмотр исходного кода

BiAudit::reverseSearch bug fix

Mariusz Muszyński 8 лет назад
Родитель
Сommit
c65ee478b5
1 измененных файлов с 1 добавлено и 1 удалено
  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);
 		}