Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: integers being truncated

  1. #1
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default integers being truncated

    I am having a problem with some custom integer fields I have added to the accounts module. when I look at the detail view of an account the trailing zeros of a number are missing for example 7000 shows up as 7, 125000 shows up as 125. When I open the account with the edit view the zeros are present. Anyone have any ideas what is going on here?

    The custom fields are set up as integers with a max size of 11 no default,min or max values.

    I am running the open source version of Version 5.0.0b (Build 3150) on Apace with MySQL.


    Thanks.

  2. #2
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: integers being truncated

    I did some more testing and have determined that it anything longer than three digits is being truncated in the detail view(543,654 is truncated to 543 for example). Anyone have any ideas as to what is going on here?

  3. #3
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: integers being truncated

    Is it ossible that you have a wrong setting in decimal symbol and 1000s separator?
    Are they different? It looks as if the comma is used as decimal separator, so all behind the comma is truncated.

  4. #4
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: integers being truncated

    Thank you for responding to my question.

    I have verified that the , is in fact the thousands separator and the . is the decimal separator. I checked this in both the local settings and my user account. The numbers show up correctly in the edit view and when I look at them in the database, so I am pretty much stumped.

  5. #5
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: integers being truncated

    I have done some additional testing with integer fields in a custom module I built. These Seem to function properly(as in not truncating the values in the detail view), At this point I am throughly confused.

  6. #6
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: integers being truncated

    So, no one has any ideas on what may be causing this issue???

  7. #7
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: integers being truncated

    I really need to get this issue figured out. Does any have any ideas at all?

  8. #8
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: integers being truncated

    Really no idea. Can you please post your diagnistic zip file here?
    Perhaps this can help to analyze the problem.

  9. #9
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: integers being truncated

    here is the diagnostic file you requested.

    Thank you for your assistance
    Attached Files Attached Files

  10. #10
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: integers being truncated

    The first I can siee is that your diagnostic file does not contain any information about your database.
    This is very strange.
    It seems that there is a communication problem to the database.
    Even the logfile shows that there are some Soap legitimation problems.
    The the problem be caused by a defective database?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 4.5.1d to 4.5.1e upgrade. Bug draft email body is truncated
    By stuzenz in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-08-14, 02:26 AM
  2. Help, attachments being truncated
    By isbeen in forum Help
    Replies: 0
    Last Post: 2007-06-06, 08:32 PM
  3. Replies: 4
    Last Post: 2006-09-26, 04:34 PM
  4. Replies: 0
    Last Post: 2006-06-20, 07:11 AM

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
  •