Debug
This commit is contained in:
parent
cdd786a3c7
commit
8ab1637ffc
1 changed files with 4 additions and 3 deletions
7
vendor/view/documents/documents_form.php
vendored
7
vendor/view/documents/documents_form.php
vendored
|
|
@ -17,7 +17,7 @@ try{
|
|||
|
||||
/** Parametros de entrada */
|
||||
$documentsId = isset($_POST['documents_id']) ? $Main->antiInjection(filter_input(INPUT_POST, 'documents_id', FILTER_SANITIZE_NUMBER_INT)) : 0;
|
||||
$CompaniesId = isset($_POST['company_id']) ? $Main->antiInjection(filter_input(INPUT_POST, 'company_id', FILTER_SANITIZE_NUMBER_INT)) : 0;
|
||||
$companiesId = isset($_POST['company_id']) ? $Main->antiInjection(filter_input(INPUT_POST, 'company_id', FILTER_SANITIZE_NUMBER_INT)) : 0;
|
||||
|
||||
/** Verifica se o ID do projeto foi informado */
|
||||
if($documentsId > 0){
|
||||
|
|
@ -95,7 +95,7 @@ try{
|
|||
foreach($CompaniesResult as $CompaniesKey => $Result){
|
||||
?>
|
||||
|
||||
<option value="<?php echo $Result->company_id;?>" <?php echo $Result->company_id === $DocumentsResult->company_id || $CompaniesId === $Result->company_id ? 'selected' : '';?>><?php echo $Result->name_fantasy;?></option>
|
||||
<option value="<?php echo $Result->company_id;?>" <?php echo $Result->company_id === $DocumentsResult->company_id || $companiesId === $Result->company_id ? 'selected' : '';?>><?php echo $Result->name_fantasy;?></option>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
|
@ -320,6 +320,7 @@ try{
|
|||
<input type="hidden" name="ACTION" value="documents_save" />
|
||||
<input type="hidden" name="FOLDER" value="action" />
|
||||
<input type="hidden" name="documents_id" value="<?php echo $documentsId;?>" />
|
||||
<input type="hidden" name="company_id" value="<?php echo $DocumentsResult->company_id;?>" />
|
||||
|
||||
|
||||
|
||||
|
|
@ -397,7 +398,7 @@ try{
|
|||
|
||||
});
|
||||
|
||||
<?php if($CompaniesId > 0){ ?>
|
||||
<?php if($companiesId > 0){ ?>
|
||||
|
||||
$('#documents_categorys_id').focus();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue