Atualizando config
This commit is contained in:
parent
06715f9230
commit
06a8fd66b6
1 changed files with 2 additions and 5 deletions
7
vendor/model/Documents.class.php
vendored
7
vendor/model/Documents.class.php
vendored
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue