Results 1 to 2 of 2

Thread: Does Sugar not like 'ss'?!

  1. #1
    stufhappens is offline Junior Member
    Join Date
    Feb 2009
    Posts
    1

    Default Does Sugar not like 'ss'?!

    NB: I have completely edited this message since first posted

    Hi,

    I am using Version 5.2.0a (Build 5447) with Firefox and have just noticed the following 'funny'

    If I have an 's' at the end of the billing address (or ship-to address) then it's cut off when saved:

    eg:

    21 The Streets will save as '21 The Street'

    21 The Streets
    Bingleys

    Will save as :
    21 The Streets
    Bingley

    But something like:

    Testx
    Hellox

    is OK.

    Following an IRC chat with some very helpful support guys, it turns out to be a known bug in data/SugarBean.php where the following needs to be changed:

    In function add_address_streets

    The last two lines of this function are:

    if ( isset($this->$street_field)) {
    $this->$street_field = trim($this->$street_field, "\n\s");

    (In my version, the relevant line is number 5307)

    to fix this problem, remove the '\s'

    I have been told this issue is fixed in the next release too.

    Cheers and many many thanks to the guys on IRC
    Last edited by stufhappens; 2009-02-12 at 01:35 AM. Reason: More info

  2. #2
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: Does Sugar not like 'ss'?!

    Hi stufhappens

    Thanks for the information

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 2008-07-12, 06:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •