From 9fd77d926b45034e4b6633e3e6ea41e3dbd3d982 Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Mon, 25 Aug 2025 11:15:01 -0300 Subject: [PATCH] Atualizando Documents.class.php --- vendor/view/companies/companies_documents_datagrid.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vendor/view/companies/companies_documents_datagrid.php b/vendor/view/companies/companies_documents_datagrid.php index 9fdb62c..01cb3af 100644 --- a/vendor/view/companies/companies_documents_datagrid.php +++ b/vendor/view/companies/companies_documents_datagrid.php @@ -22,7 +22,9 @@ try{ $page = strtolower(isset($_POST['page']) ? (int)$Main->antiInjection( filter_input(INPUT_POST,'page', FILTER_SANITIZE_SPECIAL_CHARS) ) : 0); $max = isset($config->{'app'}->{'datagrid'}->{'rows'}) ? $config->{'app'}->{'datagrid'}->{'rows'} : 20; $documentsCategorysId = isset($_POST['documents_categorys_id']) ? (int)$Main->antiInjection( filter_input(INPUT_POST, 'documents_categorys_id', FILTER_SANITIZE_SPECIAL_CHARS) ) : 0; - $documentsCategorysTagsId = isset($_POST['documents_categorys_tags_id']) ? (int)$Main->antiInjection( filter_input(INPUT_POST, 'documents_categorys_tags_id', FILTER_SANITIZE_SPECIAL_CHARS) ) : 0; + $documentsCategorysTagsId = isset($_POST['documents_categorys_tags_id']) ? (int)$Main->antiInjection( filter_input(INPUT_POST, 'documents_categorys_tags_id', FILTER_SANITIZE_SPECIAL_CHARS) ) : 0; + $tag = isset($_POST['tag']) ? (string)$Main->antiInjection( filter_input(INPUT_POST, 'tag', FILTER_SANITIZE_SPECIAL_CHARS) ) : ''; + $label = isset($_POST['label']) ? (string)$Main->antiInjection( filter_input(INPUT_POST, 'label', FILTER_SANITIZE_SPECIAL_CHARS) ) : ''; /** Valida o campo */ $DocumentsValidate->setcompanyId($companyId);