VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: PedroF on March 15, 2008, 04:19:22 am

Title: Apostrophe in a product name prevents the product folders view from displaying
Post by: PedroF on March 15, 2008, 04:19:22 am
Hi

I have tested this on 2 test sites - one has the default data in it. It occurs in both simple and extended layours

Description:
An apostrohpe in a product name causes the foler view to fail

VirtueMart Version:
Virtuemart 1.1 RC2

Joomla/Mambo Version:
Joomla 1.5.1

Steps to replicate:
View the product folders - all is OK
Change the name of an item lke hammer to hammer's
View the product folders - cannot see any of the products and IE 7 says that a line is missing ] which is the line where hammer's is in the source

Proposed fix(es):
n/a

Bugtracker task #:
n/a

System info:
Linux grandma-lamp 2.6.15-27-386 
Apache 2.0.55
PHP 5.1.2 and also on PHP 5.2.5


Cheers
Pedro

Edited to put info in the correct format
Title: Re: Apostrophe in a product name prevents the product folders view from displayi
Post by: zorro1966 on March 15, 2008, 16:48:01 pm
Hi there,

The ' in hammer's is seen as php code and will mess things up. You could try to use the ` so it looks like hammer`s. You could also try to use the hammer's like this: hammer'''s (tree in a row).

Greetings Michel
Title: Re: Apostrophe in a product name prevents the product folders view from displaying
Post by: PedroF on March 15, 2008, 23:56:39 pm
Thanks for the suggestion zorro1966

I have just taken the ' out from the product for my test site for the time being. It looks like a similar fix was made to another module according to the changelog, so the issue may be in a few places.

Cheers
Pedro
Title: Re: Apostrophe in a product name prevents the product folders view from displayi
Post by: bulabula on March 16, 2008, 00:17:02 am
What about putting the php escape (backslash) in front of it?   product\'s
Title: Re: Apostrophe in a product name prevents the product folders view from displaying
Post by: PedroF on March 19, 2008, 21:34:52 pm
Hi

Can anyone confirm that this is a problem and not just me?

Cheers
Pedro
Title: Re: Apostrophe in a product name prevents the product folders view from displayi
Post by: bulabula on April 04, 2008, 20:06:05 pm
Try using this for your apostrophes: '

Example:

Pedro's product

Becomes:
Pedro's product
Title: Re: Apostrophe in a product name prevents the product folders view from displaying
Post by: PedroF on April 05, 2008, 00:00:45 am
Hi bulabula

A similar issue was fixed in another modiule and should be fixed in this module. I haven't checked the latest builds yet to see if it still an issue in this one.

Pedro