Results 1 to 6 of 6

Thread: Custom Decimal Fields Playing Up

  1. #1
    Deland01 is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    66

    Default Custom Decimal Fields Playing Up

    For some strange reason I’ve noticed that the custom fields I made have started to do usual things. This is only happening on the Leads module with the custom Decimal fields. At first when you enter numbers into them then tried to save the changes the numbers you entered just disappeared. So I ran a “repair Custom Fields” and now when I enter numbers into them half of the fields still don’t save the data & the other half convert the numbers into strange values.

    As an example I have a field called “Fame DSO:” and when I enter the following number of 564676877866546 then save the number turns into 5.64677e+014

    The max size value for this field is 15 characters but when ever you enter 7 characters or more it converts the numbers & adds e+ in there. Any less than 7 characters and it looks to be ok.

    Has anyone come across this before?


    .
    Sugar Version - 4.5.0h
    Sugar Edition - SugarSuite
    OS - Win 2003 Server Std
    PHP Version - 5.2.0
    Database - MySQL Server 5
    Web Server - Apache 2.0.59

  2. #2
    Deland01 is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    66

    Default Re: Custom Decimal Fields Playing Up

    Ok so I did a bit of digging an some one suggested changing the number fields to decimals.... but they already are decimals...

    I've just upgraded Sugar from 4.50h to 4.51b which seams to have sorted the text for symbol substitution out but now I find If I enter a number larger than 8 characters long only the last 8 characters are displayed. I've also tried changing the "Max Size" value & then adding the field back onto the page. Still no luck.


    .
    Sugar Version - 4.5.0h
    Sugar Edition - SugarSuite
    OS - Win 2003 Server Std
    PHP Version - 5.2.0
    Database - MySQL Server 5
    Web Server - Apache 2.0.59

  3. #3
    Deland01 is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    66

    Default Re: Custom Decimal Fields Playing Up

    One thing I did notice though was if you open a Lead and change the value of the custom field, as an example I changed the number from 12345678 to 12345678910 and saved the changes. Nothing appears to happen but if you click the "View Change Log" option the numbers display correctly in the log. No matter what you change the number to the change log picks all the settings up fine.
    Sugar Version - 4.5.0h
    Sugar Edition - SugarSuite
    OS - Win 2003 Server Std
    PHP Version - 5.2.0
    Database - MySQL Server 5
    Web Server - Apache 2.0.59

  4. #4
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Re: Custom Decimal Fields Playing Up

    If you look closely at the database, you will see the field values. if you enter a number with more characters sugar wont update, so go to custom field and increase the field size. the only other problem that i experiance is if i change the back end - sql 2005 to fe 25.2 the data shows correct in sugar. but when you repair custom fields sugar changes it back to 25.4?

  5. #5
    Deland01 is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    66

    Default Re: Custom Decimal Fields Playing Up

    Thanks for that, when you repair the field codes I believe it uses the vardefs.php as detailed in the following post:

    http://www.sugarcrm.com/forums/showthread.php?t=22219

    But I checked /modules/Leads/vardefs.php for my custom fields but couldn’t find any.

    Don’t know if this helps you out at all.
    Sugar Version - 4.5.0h
    Sugar Edition - SugarSuite
    OS - Win 2003 Server Std
    PHP Version - 5.2.0
    Database - MySQL Server 5
    Web Server - Apache 2.0.59

  6. #6
    Deland01 is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    66

    Default Re: Custom Decimal Fields Playing Up

    Mayer,

    I just changed my custom number fields from char(10) to char(15) in SQL using phpmyadmin. I then ran a "repair fields" option in sugar and have some even stranger results.

    My custom number fields are all set to allow 15 chara max in the module editor but I can enter no more than 12 char into each field if I want the data to save????

    The max character variable must be set in one of the php files or in another variable somewhere.

    The strange thing is after I ran the repair fields it didn't change the SQL database values back to char(10) as I thought it would?
    Sugar Version - 4.5.0h
    Sugar Edition - SugarSuite
    OS - Win 2003 Server Std
    PHP Version - 5.2.0
    Database - MySQL Server 5
    Web Server - Apache 2.0.59

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Saving and updating custom fields data
    By jones70 in forum Developer Help
    Replies: 2
    Last Post: 2011-10-05, 06:10 AM
  2. Replies: 0
    Last Post: 2006-12-20, 11:39 PM
  3. Replies: 1
    Last Post: 2006-11-24, 12:08 AM
  4. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  5. Replies: 7
    Last Post: 2006-06-06, 07:56 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
  •