Atualizando upload de arquivo
This commit is contained in:
parent
e26ffd40bc
commit
1c9d45edd7
2 changed files with 6 additions and 6 deletions
2
vendor/action/documents/documents_upload.php
vendored
2
vendor/action/documents/documents_upload.php
vendored
|
|
@ -20,7 +20,7 @@ try{
|
|||
|
||||
/** Validando os campos de entrada */
|
||||
$DocumentsValidate->setDocumentsCategorysId($documentsCategorysId);
|
||||
$DocumentsValidate->setcompanyId($companyId);
|
||||
$DocumentsValidate->setCompanyId($companyId);
|
||||
$DocumentsValidate->setName($name);
|
||||
$DocumentsValidate->setFile($file);
|
||||
|
||||
|
|
|
|||
|
|
@ -186,13 +186,13 @@ class DocumentsValidate
|
|||
$this->companyId = isset($companyId) ? $this->Main->antiInjection($companyId) : null;
|
||||
|
||||
/** Verifica se a informação foi informada */
|
||||
if(empty($this->companyId))
|
||||
{
|
||||
// if(empty($this->companyId))
|
||||
// {
|
||||
|
||||
/** Adição de elemento */
|
||||
array_push($this->errors, 'O cliente deve ser informado');
|
||||
// /** Adição de elemento */
|
||||
// array_push($this->errors, 'O cliente deve ser informado');
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue