Skip to content

Commit 53f0d29

Browse files
committed
- made it possible to specify database table for AUTHSQL.
1 parent 2c49c56 commit 53f0d29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

interface/lib/classes/listform.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ private function getDatasourceData($field)
9797
$querystring = str_replace("{AUTHSQL}", $app->tform->getAuthSQL('r'), $querystring);
9898
$querystring = str_replace("{AUTHSQL-A}", $app->tform->getAuthSQL('r', 'a'), $querystring);
9999
$querystring = str_replace("{AUTHSQL-B}", $app->tform->getAuthSQL('r', 'b'), $querystring);
100+
$querystring = preg_replace_callback('@{AUTHSQL::(.+?)}@', create_function('$matches','global $app; $tmp = $app->tform->getAuthSQL("r", $matches[1]); return $tmp;'), $querystring);
100101

101102
//* Getting the records
102103
$tmp_records = $app->db->queryAllRecords($querystring);

0 commit comments

Comments
 (0)