Skip to content
Snippets Groups Projects
Commit 5b8c583c authored by Mike Feranda's avatar Mike Feranda Committed by Mike Feranda
Browse files

Issue #3172951 by mferanda: Suppression - Ability to change default + character

parent 56ef2fee
No related branches found
No related tags found
No related merge requests found
...@@ -621,9 +621,21 @@ class HtmlFormatterType extends FormatterBase { ...@@ -621,9 +621,21 @@ class HtmlFormatterType extends FormatterBase {
// Process actual suppressions // Process actual suppressions
if (!$suppOverride) { if (!$suppOverride) {
// Loop suppressions and do it
foreach($suppCell as $row => $value) { foreach($suppCell as $row => $value) {
foreach($value as $key => $field) { foreach($value as $key => $field) {
$rowData[$row]->$field = '+'; // Get character if not exist, set default
if (isset($rowSettings[$row])
&& isset($rowSettings[$row][$field])
&& isset($rowSettings[$row][$field]['valueSuppression'])
&& isset($rowSettings[$row][$field]['valueSuppression']['character'])) {
// Up to 6 characters in length
$suppCharacter = substr($rowSettings[$row][$field]['valueSuppression']['character'], 6);
}
else {
$suppCharacter = '+';
}
$rowData[$row]->$field = $suppCharacter;
} }
} }
} }
......
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