Ver código fonte

PokazOferty Fix bug in convert options to srv

Piotr Labudda 11 anos atrás
pai
commit
fa33bc3ad7
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      SE/superedit-POKAZ_OFERTY_AKTUALNE_FUNC.php

+ 6 - 0
SE/superedit-POKAZ_OFERTY_AKTUALNE_FUNC.php

@@ -3655,6 +3655,12 @@ class PokazOfertyController {
 			}
 		}
 		if (count($sqlSearch) <= 0) return false;
+		if (!array_key_exists('TVC', $this->id_options_to_srv)) {
+			$sqlSearch[] = "g.`ID_TVC`='0'";
+		}
+		if (!array_key_exists('TEL', $this->id_options_to_srv)) {
+			$sqlSearch[] = "g.`ID_TEL`='0'";
+		}
 		$sqlSearch = implode(" and ", $sqlSearch);
 
 		$offersIds = array_values($this->id_options_to_srv);