Commit 6d7ce0c1 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Merge branch 'B12674-QFQ_Function_subheader_skip_deleted' into 'develop'

B12674 qfq function subheader skip deleted

See merge request !353
parents c500b6c1 59e2800a
Pipeline #5341 passed with stages
in 3 minutes and 37 seconds
...@@ -2016,6 +2016,7 @@ values. ...@@ -2016,6 +2016,7 @@ values.
* The output of a QFQ function is accessible via ``{{_output:R}}``. * The output of a QFQ function is accessible via ``{{_output:R}}``.
* It is possible to call functions inside of a function. * It is possible to call functions inside of a function.
* If ``render = api`` is defined in the function, both tt-content records can be saved on the *same* page and won't interfere. * If ``render = api`` is defined in the function, both tt-content records can be saved on the *same* page and won't interfere.
* FE Groups are not respected - don't use them on QFQ functions.
Example tt-content record for the function:: Example tt-content record for the function::
......
...@@ -1133,7 +1133,7 @@ class Database { ...@@ -1133,7 +1133,7 @@ class Database {
$column = (is_numeric($uid)) ? 'uid' : 'subheader'; $column = (is_numeric($uid)) ? 'uid' : 'subheader';
$dbT3 = $this->store->getVar(SYSTEM_DB_NAME_T3, STORE_SYSTEM); $dbT3 = $this->store->getVar(SYSTEM_DB_NAME_T3, STORE_SYSTEM);
$sql = "SELECT * FROM `$dbT3`.`tt_content` WHERE `$column` = ?"; $sql = "SELECT * FROM `$dbT3`.`tt_content` WHERE `$column` = ? AND `deleted` = 0 AND `hidden` = 0 ";
$arr = $this->sql($sql, ROW_EXPECT_1, [$uid], 'Function "' . $column . '=' . $uid . '" not found or more than one found.'); $arr = $this->sql($sql, ROW_EXPECT_1, [$uid], 'Function "' . $column . '=' . $uid . '" not found or more than one found.');
return ($arr); return ($arr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment