* [PATCH widget-toolkit] fix regression in checkcolumn rendering
@ 2026-02-24 8:55 Dominik Csapak
2026-02-24 9:45 ` Michael Köppl
2026-02-24 12:51 ` applied: " Fabian Grünbichler
0 siblings, 2 replies; 3+ messages in thread
From: Dominik Csapak @ 2026-02-24 8:55 UTC (permalink / raw)
To: pve-devel
in commit 57cd471f79ecd6b98c9cadb600ba0255360980fe the default column
renderer was changed to Ext.htmlEncode, so that by default, we don't
return raw HTML there anymore.
The 'checkcolumn' relies on that behavior though, so we have to reset
the renderer there to 'undefined' for it to work properly.
This fixes all uses of 'checkcolumn', for example the enabled column in
the boot order edit window for virtual machines.
Fixes: 57cd471 (prevent interpreting of HTML in column grids by default)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
src/Toolkit.js | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/Toolkit.js b/src/Toolkit.js
index d4e579b..bdfadf8 100644
--- a/src/Toolkit.js
+++ b/src/Toolkit.js
@@ -769,12 +769,21 @@ Ext.define('Proxmox.Cookies', {
// Prevents html entities to be interpreted by the browser in grid columns by
// default. Custom renderer have to take care of this by themselves.
+//
+// Reset the renderer for the 'checkcolumn' back to undefined, since it relies
+// on the renderer returning raw HTML.
Ext.define('Proxmox.grid.column.Column', {
override: 'Ext.grid.column.Column',
renderer: Ext.htmlEncode,
});
+Ext.define('Proxmox.grid.column.Check', {
+ override: 'Ext.grid.column.Column',
+
+ renderer: undefined,
+});
+
// force alert boxes to be rendered with an Error Icon
// since Ext.Msg is an object and not a prototype, we need to override it
// after the framework has been initiated
--
2.47.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH widget-toolkit] fix regression in checkcolumn rendering
2026-02-24 8:55 [PATCH widget-toolkit] fix regression in checkcolumn rendering Dominik Csapak
@ 2026-02-24 9:45 ` Michael Köppl
2026-02-24 12:51 ` applied: " Fabian Grünbichler
1 sibling, 0 replies; 3+ messages in thread
From: Michael Köppl @ 2026-02-24 9:45 UTC (permalink / raw)
To: Dominik Csapak, pve-devel
Gave this a quick spin since I was just encountering the missing
checkboxes. Checked the various places we're using checkcolumn and seems
to work as advertised.
Tested-by: Michael Köppl <m.koeppl@proxmox.com>
On Tue Feb 24, 2026 at 9:55 AM CET, Dominik Csapak wrote:
> in commit 57cd471f79ecd6b98c9cadb600ba0255360980fe the default column
> renderer was changed to Ext.htmlEncode, so that by default, we don't
> return raw HTML there anymore.
>
> The 'checkcolumn' relies on that behavior though, so we have to reset
> the renderer there to 'undefined' for it to work properly.
>
> This fixes all uses of 'checkcolumn', for example the enabled column in
> the boot order edit window for virtual machines.
>
> Fixes: 57cd471 (prevent interpreting of HTML in column grids by default)
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
> src/Toolkit.js | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/src/Toolkit.js b/src/Toolkit.js
> index d4e579b..bdfadf8 100644
> --- a/src/Toolkit.js
> +++ b/src/Toolkit.js
> @@ -769,12 +769,21 @@ Ext.define('Proxmox.Cookies', {
>
> // Prevents html entities to be interpreted by the browser in grid columns by
> // default. Custom renderer have to take care of this by themselves.
> +//
> +// Reset the renderer for the 'checkcolumn' back to undefined, since it relies
> +// on the renderer returning raw HTML.
> Ext.define('Proxmox.grid.column.Column', {
> override: 'Ext.grid.column.Column',
>
> renderer: Ext.htmlEncode,
> });
>
> +Ext.define('Proxmox.grid.column.Check', {
> + override: 'Ext.grid.column.Column',
> +
> + renderer: undefined,
> +});
> +
> // force alert boxes to be rendered with an Error Icon
> // since Ext.Msg is an object and not a prototype, we need to override it
> // after the framework has been initiated
^ permalink raw reply [flat|nested] 3+ messages in thread
* applied: [PATCH widget-toolkit] fix regression in checkcolumn rendering
2026-02-24 8:55 [PATCH widget-toolkit] fix regression in checkcolumn rendering Dominik Csapak
2026-02-24 9:45 ` Michael Köppl
@ 2026-02-24 12:51 ` Fabian Grünbichler
1 sibling, 0 replies; 3+ messages in thread
From: Fabian Grünbichler @ 2026-02-24 12:51 UTC (permalink / raw)
To: pve-devel, Dominik Csapak
On Tue, 24 Feb 2026 09:55:22 +0100, Dominik Csapak wrote:
> in commit 57cd471f79ecd6b98c9cadb600ba0255360980fe the default column
> renderer was changed to Ext.htmlEncode, so that by default, we don't
> return raw HTML there anymore.
>
> The 'checkcolumn' relies on that behavior though, so we have to reset
> the renderer there to 'undefined' for it to work properly.
>
> [...]
Applied (+cherry-picked into stable-bookworm), thanks!
[1/1] fix regression in checkcolumn rendering
commit: fb8da23d5955780d0018d69305c87deb3ab3a596
Best regards,
--
Fabian Grünbichler <f.gruenbichler@proxmox.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-02-24 12:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-24 8:55 [PATCH widget-toolkit] fix regression in checkcolumn rendering Dominik Csapak
2026-02-24 9:45 ` Michael Köppl
2026-02-24 12:51 ` applied: " Fabian Grünbichler
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.