Skip to content

Commit

Permalink
🔨 #104 addFilterField primaryKey
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Aug 29, 2023
1 parent 7b6124b commit 3fac820
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/control/controllers/TCreateFormList.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ public function show($print = false)
$this->addLine(ESP.ESP.'$this->setActiveRecord(\''.$this->getTableRef().'\'); // define the Active Record');
$this->addLine(ESP.ESP.'$this->setDefaultOrder(self::$primaryKey, \'desc\'); // define the default order');
$this->addLine(ESP.ESP.'$this->setLimit(TFormDinGrid::ROWS_PER_PAGE);');
$this->addBlankLine();
$this->addLine(ESP.ESP.'$this->filter_criteria = new TCriteria;');
$this->addLine(ESP.ESP.'$this->addFilterField(self::$primaryKey, \'=\', self::$primaryKey); //campo, operador, campo do form');
}
$this->addLine(ESP.ESP.'if(!empty($param[\'target_container\'])){');
$this->addLine(ESP.ESP.ESP.'$this->adianti_target_container = $param[\'target_container\'];');
Expand Down

0 comments on commit 3fac820

Please sign in to comment.