Skip to content

Commit

Permalink
17467 FIX Fix escaping of aggregation group painter
Browse files Browse the repository at this point in the history
SUP-20679

Change-Id: I7a8f708b180248e3ff01151abad93c989d2c6abd
  • Loading branch information
makanakoeln committed Jan 9, 2025
1 parent 265cde9 commit 8fea8af
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .werks/17467.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[//]: # (werk v2)
# Fix escaping of aggregation group painter

key | value
---------- | ---
date | 2025-01-08T12:14:16+00:00
version | 2.5.0b1
class | fix
edition | cre
component | bi
level | 1
compatible | yes

If you used e.g. "&" in Business Intelligence group names, the GUI showed "&amp".
This has been fixed.
2 changes: 1 addition & 1 deletion cmk/gui/bi/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def columns(self) -> Sequence[ColumnName]:
return ["aggr_group"]

def render(self, row: Row, cell: Cell) -> CellSpec:
return "", escape_attribute(row["aggr_group"])
return "", HTML.with_escaping(row["aggr_group"])


class PainterAggrName(Painter):
Expand Down

0 comments on commit 8fea8af

Please sign in to comment.