Results 1 to 3 of 3

Thread: Trouble with numbers and commas

  1. #1
    GameboyRMH is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    70

    Unhappy Trouble with numbers and commas

    I'm working on a new module and I have an integer field which is used to store a year number. The problem is, apparently while "2007" falls between my validation numbers of 2000 and 2010, "2,007" does not, and therefore when editing a record you need to manually re-enter the year for it to be accepted. Is there any way to fix this apart from setting the default number separator in config.php to null? I don't want to disable commas system-wide.
    Server: Fedora
    Sugar 5 CE
    Apache 2.2.6
    MySQL 5.0.27

  2. #2
    labanjohnson is offline Sugar Community Member
    Join Date
    Jul 2007
    Location
    Houston, TX
    Posts
    139

    Default Re: Trouble with numbers and commas

    this is possible in PHP but I'd wait to see if there is something built in to change how dates are displayed first
    Laban Johnson
    SugarCE User, Idealist
    Open Source and Social Media Enthusiast, Social Entrepreneur
    Twitter: http://www.twitter.com/labanjohnson
    Facebook LinkedIn
    Home page: http://www.LabanJohnson.com

  3. #3
    GameboyRMH is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    70

    Default Re: Trouble with numbers and commas

    I'm using an integer, not a date. I've added custom date fields to other modules and they work fine.
    Server: Fedora
    Sugar 5 CE
    Apache 2.2.6
    MySQL 5.0.27

Thread Information

Users Browsing this Thread

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

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
  •