Developer forum

Forum » CMS - Standard features » Parameter of type system.boolean[] is rendered inconsistently

Parameter of type system.boolean[] is rendered inconsistently

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I am using a parameter of type system.boolean[] to filter if I show only variants or variants and standalone products.

In the Product List Page I am supposed to make an ajax call to another page and pass all Query parameters exactly as they are used in the current page.

I am using False,False as default value.

I have noticed a strange behavior of how the above parameter is rendered.

First time I load the page, the parameter is rendered as a string (see first screen dump).

If I change the page size, page sorting or add another paramter to the page (using facets), the Parameter is rendered as System.Collections.Generic.List`1[System.Boolean].

I am using the regular  GetLoop("Query.Parameters") to list all paramateres and I am not processing them in any way.
I have attached screend dumps of the TemplateTags and the configuration of my parameter.

Thank you,
Adrian

Parameter_IsVariant_1.png Parameter_IsVariant_2.png Parameter_IsVariant_3.png

Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi Adrian,

I've tried to check the issue on my test environment based on last DW94 and was not able to reproduce it, please have a look at the proof - https://www.screencast.com/t/pkKtAl3XM.

BR, Oleg QA

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Oleg,

Thank you for checking it out.

Unfortunately, your version shows something different than what I see in mine, I am using 9.3.9 and I don;t think we gonna upgrade to 9.4 until we are certain there is a stable version available.

If you look at my screen dumps, you will notice that what I see is reasonably different than what you see. And we don;t have any customisation in place. At least nothig that coiuld affect this behavior.

What I need to know is if there is any solution for 9.3.x 

Thank you,

Adrian

 

You must be logged in to post in the forum