Commit 0d2bb37e authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '5135-filter-enhancement-and-management-refactor' into '1.4-dev'

Resolve "filter enhancement and management refactor"

See merge request fusiondirectory/fd!527
parents 31e4575a d3294ded
......@@ -175,6 +175,15 @@ class Column
$value = $this->getAttributeValue($entry);
if ($value == '') {
return ' ';
} elseif (is_array($value)) {
$value = array_map(
function ($v)
{
return htmlentities($v, ENT_COMPAT, 'UTF-8');
},
$value
);
return implode("<br/>\n", $value);
} else {
return htmlentities($value, ENT_COMPAT, 'UTF-8');
}
......
......@@ -25,23 +25,7 @@ class LinkColumn extends Column
{
function renderCell(ListingEntry $entry)
{
$value = $this->getAttributeValue($entry);
if ($value == '') {
return '&nbsp;';
} else {
if (is_array($value)) {
$value = array_map(
function ($v)
{
return htmlentities($v, ENT_COMPAT, 'UTF-8');
},
$value
);
return $this->renderLink($entry, implode("<br/>\n", $value));
} else {
return $this->renderLink($entry, htmlentities($value, ENT_COMPAT, 'UTF-8'));
}
}
return $this->renderLink($entry, parent::renderCell($entry));
}
protected function renderLink(ListingEntry $entry, $htmlValue)
......
  • SonarQube analysis indicates that quality gate is failed.

    • Security Rating on New Code is passed: Actual value 1
    • Reliability Rating on New Code is failed: Actual value 3 > 1
    • Maintainability Rating on New Code is passed: Actual value 1
    • Duplicated Lines on New Code (%) is passed: Actual value 3.063365505665128

    SonarQube analysis reported no issues.

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