Username "Fields" causes problem...

  • Posts: 30
  • Thank you received: 0
12 years 3 months ago #59379

Hi Nicolas,

A slightly amusing bug here...

We have a customer whose last name is "Fields". He complained that his address contained the first line "Mr XXXX Custom fields".

I have tried this - I registered as a test user "Jim Fields", and the address has "Mr Jim Custom fields" as the first line. See the attachment.

Best regards,

John

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 3 months ago #59437

Hi,

That's indeed a funny one :)

Add the code:
function show(&$field,$value){
if($field->field_table=='address') return $value;
return $this->trans($value);
}

after the line:
class hikashopText extends hikashopItem{

in administrator/components/com_hikashop/classes/field.php and that will solve the problem.

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

  • Posts: 30
  • Thank you received: 0
12 years 3 months ago #59521

Thanks, Nicholas.

Is that in the current build, now? I really want to update the whole program soon.

Best regards,

John

Last edit: 12 years 3 months ago by jrm.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 3 months ago #59568

It will be in next version of HikaShop in one or two weeks.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum