Debug
This commit is contained in:
parent
e1b8141d78
commit
5a308be0b5
2 changed files with 3 additions and 6 deletions
3
vendor/action/companies/companies_save.php
vendored
3
vendor/action/companies/companies_save.php
vendored
|
|
@ -70,9 +70,6 @@ try{
|
|||
} else {
|
||||
|
||||
|
||||
echo $CompaniesValidate->getCompanyId();
|
||||
exit;
|
||||
|
||||
/** Salva as alterações ou cadastra um novo usuário */
|
||||
if($Companies->Save($CompaniesValidate->getCompanyId(),
|
||||
$CompaniesValidate->getNameBusiness(),
|
||||
|
|
|
|||
|
|
@ -60,11 +60,11 @@ class CompaniesValidate
|
|||
}
|
||||
|
||||
/** Método trata campo clients_id */
|
||||
public function setCompanyId(int $CompanyId) : void
|
||||
public function setCompanyId(int $companyId) : void
|
||||
{
|
||||
|
||||
/** Trata a entrada da informação */
|
||||
$this->companyId = isset($CompanyId) ? $this->Main->antiInjection($CompanyId) : 0;
|
||||
$this->companyId = isset($companyId) ? $this->Main->antiInjection($companyId) : 0;
|
||||
|
||||
/** Verifica se a informação foi informada */
|
||||
if($this->companyId < 0)
|
||||
|
|
@ -514,7 +514,7 @@ class CompaniesValidate
|
|||
{
|
||||
|
||||
/** Retorno da informação */
|
||||
return (int)$this->CompanyId;
|
||||
return (int)$this->companyId;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue