Comma in category causes title truncation.

  • Posts: 7
  • Thank you received: 0
11 years 1 week ago #132614

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

Attachments:
Last edit: 11 years 1 week ago by andylinde.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 1 week ago #132628

Hi,

Thanks for the report.
Please edit the file administrator/components/com_hikashop/classes/category.php and replace

$val = str_replace(' ','_',strtoupper($category->category_name));
$rows[$k]->translation = JText::_($val);
By
$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.

  • Posts: 7
  • Thank you received: 0
11 years 5 days ago #132964

Sounds good. Thanks!

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

  • Posts: 12
  • Thank you received: 1
10 years 4 months ago #165058

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 4 months ago #165067

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.

  • Posts: 12
  • Thank you received: 1
10 years 4 months ago #165158

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

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 3 months ago #165159

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.096 seconds
Powered by Kunena Forum