From 7ce5e55cc818aa8d39f7c7c495980f80f8cc3f2a Mon Sep 17 00:00:00 2001 From: Bjverde Date: Sat, 7 Oct 2023 16:09:07 -0300 Subject: [PATCH] :hammer: #84 texto --- app/control/controllers/TCreateFormList.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/control/controllers/TCreateFormList.class.php b/app/control/controllers/TCreateFormList.class.php index ce62ce0..1f45bb1 100644 --- a/app/control/controllers/TCreateFormList.class.php +++ b/app/control/controllers/TCreateFormList.class.php @@ -185,6 +185,13 @@ public function addMethod_onSearch($qtdTab) $this->addBlankLine(); $this->addLine($qtdTab.ESP.'TSession::setValue(__CLASS__.\'_filter_data\', NULL);'); $this->addLine($qtdTab.ESP.'TSession::setValue(__CLASS__.\'_filters\', NULL);'); + $this->addBlankLine(); + $this->addLine($qtdTab.ESP.'$this->form->setData($data); // fill the form with data again'); + $this->addLine($qtdTab.ESP.'// keep the search data in the session'); + $this->addLine($qtdTab.ESP.'TSession::setValue(__CLASS__.\'_filter_data\', $data);'); + $this->addLine($qtdTab.ESP.'TSession::setValue(__CLASS__.\'_filters\', $filters);'); + $this->addBlankLine(); + $this->addLine($qtdTab.ESP.'$this->onReload([\'offset\' => 0, \'first_page\' => 1]);'); $this->addLine($qtdTab.'} //END onClear'); } //--------------------------------------------------------------------------------------