Skip to main content

Comma in category causes title truncation.

More
12 years 10 months ago - 12 years 10 months ago #132614 by andylinde
Hello,

It seems that when you add a comma in a category title, it causes the title to be truncated at the comma. It also causes the title to display in all caps.

Interestingly, the title still seems to be saved correctly, as I can go in and edit it. If I remove the comma, the error corrects itself.

I don't know if other punctuation causes this, though I have used an ampersand (&) and slash (/) in other category titles without issue.

Screenshots attached!

-- url of the page with the problem -- : non-public site, but the path is ...administrator/index.php?option=com_hikashop&ctrl=category
-- HikaShop version -- : Business 2.2.2
-- Joomla version -- : 3.2.0
-- PHP version -- : 5.3.2
-- Browser(s) name and version -- : Chrome Beta 32
-- Error-message(debug-mod must be tuned on) -- : None thrown
Last edit: 12 years 10 months ago by andylinde.

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #132628 by Jerome
Hi,

Thanks for the report.
Please edit the file administrator/components/com_hikashop/classes/category.php and replace
Code:
$val = str_replace(' ','_',strtoupper($category->category_name)); $rows[$k]->translation = JText::_($val);
By
Code:
$val = str_replace(array(' ',','),'_',strtoupper($category->category_name)); $rows[$k]->translation = JText::_($val);
It will fix the problem.
We will include this fix in the next HikaShop packages.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #132964 by andylinde
Sounds good. Thanks!

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #165058 by tinadevi
Hi,

I have same problem in HikaShop version 2.3.1 business. Please advise.

Thank you
Tina

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #165067 by nicolas
Hi,

This patch has been included in HikaShop since then. So the problem is probably different even though the result is the same.
Could you provide a link to the page with the issue and a screenshot of the category options so that we can analyze the issue you have ?

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #165158 by tinadevi
Hi Nicolas,

Actually, I feel a bit silly wasting your time with this. The problem is only in the admin area. Here are the screenshots.

No Comma



With Comma

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #165159 by Xavier
Hi,

Thanks to update to the version 2.3.2 available from our website.

Regarding your issue, don't you have the category displayed on frontend ? In a menu, or module ?
If it is displayed, is the name correctly displayed ?

Else we will need a backend access in order to see what is happening directly on your website.
You can send it via pm, don't forget to give the link to this topic.

Please Log in or Create an account to join the conversation.

Time to create page: 0.193 seconds
Powered by Kunena Forum