Skip to content

Commit

Permalink
fix(condition): avoid HTML entities in dropdown
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Mar 29, 2021
1 parent a87ebbe commit 4bdbdb8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions inc/condition.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,16 +390,10 @@ public function getConditionHtml(array $input) : string {

// Equality / inequality operator
$html.= '<div class="div_show_condition_operator">';
$showConditions = array_map(
function ($item) {
return htmlentities($item);
},
static::getEnumShowCondition()
);

$html.= Dropdown::showFromArray(
'_conditions[show_condition][]',
$showConditions, [
self::getEnumShowCondition(), [
'display' => false,
'value' => $show_condition,
'rand' => $rand,
Expand Down

0 comments on commit 4bdbdb8

Please sign in to comment.