Skip to content
Snippets Groups Projects
Commit 4991f9e0 authored by tbrehm's avatar tbrehm
Browse files

SQL plugin erweitert

parent cc374559
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,8 @@ class plugin_listview extends plugin_base {
$app->uses('listform');
$app->listform->loadListDef($this->options["listdef"]);
//$app->listform->SQLExtWhere = "type = 'alias'";
$listTpl = new tpl;
$listTpl->newTemplate('templates/'.$app->listform->listDef["name"].'_list.htm');
......@@ -32,6 +34,10 @@ class plugin_listview extends plugin_base {
$sql_where = $app->tform->getAuthSQL('r')." and";
}
}
if($this->options["sqlextwhere"] != '') {
$sql_where .= " ".$this->options["sqlextwhere"]." and";
}
$sql_where = $app->listform->getSearchSQL($sql_where);
$listTpl->setVar($app->listform->searchValues);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment