Skip to content

Commit 4991f9e

Browse files
committed
SQL plugin erweitert
1 parent cc37455 commit 4991f9e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

interface/lib/classes/plugin_listview.inc.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ function onShow() {
1616
$app->uses('listform');
1717
$app->listform->loadListDef($this->options["listdef"]);
1818

19+
//$app->listform->SQLExtWhere = "type = 'alias'";
20+
1921
$listTpl = new tpl;
2022
$listTpl->newTemplate('templates/'.$app->listform->listDef["name"].'_list.htm');
2123

@@ -32,6 +34,10 @@ function onShow() {
3234
$sql_where = $app->tform->getAuthSQL('r')." and";
3335
}
3436
}
37+
38+
if($this->options["sqlextwhere"] != '') {
39+
$sql_where .= " ".$this->options["sqlextwhere"]." and";
40+
}
3541

3642
$sql_where = $app->listform->getSearchSQL($sql_where);
3743
$listTpl->setVar($app->listform->searchValues);

0 commit comments

Comments
 (0)