From 06a8fd66b64892c0fd70b659525b5e8e691669a9 Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Wed, 6 Aug 2025 08:58:24 -0300 Subject: [PATCH] Atualizando config --- vendor/model/Documents.class.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/vendor/model/Documents.class.php b/vendor/model/Documents.class.php index 5788529..b6a0d7d 100644 --- a/vendor/model/Documents.class.php +++ b/vendor/model/Documents.class.php @@ -153,7 +153,7 @@ class Documents from documents d left join companies c on d.company_id = c.company_id left join documents_categorys dc on d.documents_categorys_id = dc.documents_categorys_id - where d.company_id = :company_id '; + where d.company_id is not null '; $this->sql .= $this->and; @@ -161,10 +161,7 @@ class Documents $this->sql .= $this->limit; /** Preparo o SQL para execução */ - $this->stmt = $this->connection->connect()->prepare($this->sql); - - /** Parametros da consulta */ - $this->stmt->bindParam('company_id', $_SESSION['USERSCOMPANYID']);/** Grava o ID da empresa responsável pelo arquivo */ + $this->stmt = $this->connection->connect()->prepare($this->sql); /** Executo o SQL */ $this->stmt->execute();