Skip to content
Snippets Groups Projects
Commit fbdad4cf authored by Carsten  Rose's avatar Carsten Rose
Browse files

Report.php: fixed bug - hidden columns are now accessible via {{<columnname>}}

parent 9c24d2d3
No related branches found
No related tags found
No related merge requests found
...@@ -527,7 +527,7 @@ class Report { ...@@ -527,7 +527,7 @@ class Report {
$flagControl = true; $flagControl = true;
$columnName = substr($columnName, 1); $columnName = substr($columnName, 1);
} }
//TODO: reserved names,not starting with '_' will be still accepted - stop this!
switch ($columnName) { switch ($columnName) {
case "link": case "link":
$link = new Link($this->fr_error, $this->sip); $link = new Link($this->fr_error, $this->sip);
...@@ -741,7 +741,8 @@ class Report { ...@@ -741,7 +741,8 @@ class Report {
break; break;
} }
$this->variables->resultArray[$full_level . "."][$columnName] = $content; // Always save column values, even if they are hidden.
$this->variables->resultArray[$full_level . "."][$columnName] = ($content == '' && $flagControl) ? $columnValue : $content;
return $content; return $content;
} }
......
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