Debug
This commit is contained in:
parent
66232a932f
commit
f726f05047
1 changed files with 2 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ try{
|
|||
$DocumentsValidate->setClientsId($clientsId);
|
||||
|
||||
/** Consulta a quantidade de registros */
|
||||
echo $NumberRecords = $Documents->Count(null, null, null, $clientsId);
|
||||
$NumberRecords = $Documents->Count(null, null, null, $clientsId);
|
||||
|
||||
/** Verifica se existem documentos
|
||||
* a serem listados */
|
||||
|
|
@ -106,10 +106,8 @@ try{
|
|||
|
||||
}else{
|
||||
|
||||
echo 'Aqui';
|
||||
|
||||
/** Informo */
|
||||
throw new InvalidArgumentException($clientsId > 0 ? 'Não há documentos cadastrados <button type="button" class="btn btn-secondary btn-sm float-right ml-2" onclick="request(\'FOLDER=view&TABLE=documents&ACTION=documents_form&clients_id=<?php echo $clientsId;?>\', \'#loadContent\', true, \'\', \'\', \'\', \'Preparando formulário\', \'blue\', \'circle\', \'sm\', true)"><i class="fas fa-plus-circle mr-1"></i>Cadastrar documento</button> ' : '', 0);
|
||||
throw new InvalidArgumentException('Não há documentos cadastrados <button type="button" class="btn btn-secondary btn-sm float-right ml-2" onclick="request(\'FOLDER=view&TABLE=documents&ACTION=documents_form&clients_id=<?php echo $clientsId;?>\', \'#loadContent\', true, \'\', \'\', \'\', \'Preparando formulário\', \'blue\', \'circle\', \'sm\', true)"><i class="fas fa-plus-circle mr-1"></i>Cadastrar documento</button> ', 0);
|
||||
}
|
||||
|
||||
/** Caso o token de acesso seja inválido, informo */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue