Re: [xwiki-users] Ampersands in livetable filtering column bug
Hi Vincent, I've just checked and this problem still exists in XE 2.2. I've managed to fix it on my local XE 2.2 setup by changing line 189 of the resources/js/xwiki/table/livetable.js file from: for(key in this.filters){if(!existing[key]&&this.filters[key]!=""){filterString+="&"+key+"="+this.filters[key] to: for(key in this.filters){if(!existing[key]&&this.filters[key]!=""){filterString+="&"+key+"="+this.filters[key].gsub('&','%26') This seems to have fixed it for select lists, input boxes etc. Radek Rekas ----- Original Message ----- From: Vincent Massol <[email protected]> Sent: Tue, 23/2/2010 6:33pm To: XWiki Users <[email protected]> Subject: Re: [xwiki-users] Ampersands in livetable filtering column bug Hi, On Feb 23, 2010, at 5:23 AM, Radek Rekas wrote:
We're using xwiki 2.03 and text with ampersands in it breaks the livetable filtering feature.
Is there any fix to properly escape the text that gets entered into the filtering fields on livetables or can anyone give me a pointer on where to start looking in order to fix this?
AFAIK this was fixed in XE 2.2 Thanks -Vincent _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On 02/24/2010 03:30 AM, Radek Rekas wrote:
Hi Vincent,
I've just checked and this problem still exists in XE 2.2.
I've managed to fix it on my local XE 2.2 setup by changing line 189 of the resources/js/xwiki/table/livetable.js file from: for(key in this.filters){if(!existing[key]&&this.filters[key]!=""){filterString+="&"+key+"="+this.filters[key]
to: for(key in this.filters){if(!existing[key]&&this.filters[key]!=""){filterString+="&"+key+"="+this.filters[key].gsub('&','%26')
This seems to have fixed it for select lists, input boxes etc.
Just fixed, see http://jira.xwiki.org/jira/browse/XWIKI-3899 I used the generic encodeURIComponent method instead of the specific replace for &.
Radek Rekas
----- Original Message ----- From: Vincent Massol<[email protected]> Sent: Tue, 23/2/2010 6:33pm To: XWiki Users<[email protected]> Subject: Re: [xwiki-users] Ampersands in livetable filtering column bug
Hi,
On Feb 23, 2010, at 5:23 AM, Radek Rekas wrote:
We're using xwiki 2.03 and text with ampersands in it breaks the livetable filtering feature.
Is there any fix to properly escape the text that gets entered into the filtering fields on livetables or can anyone give me a pointer on where to start looking in order to fix this?
AFAIK this was fixed in XE 2.2
-- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (2)
-
Radek Rekas -
Sergiu Dumitriu