Thursday, November 20, 2008 ..:: Forums ::.. Register  Login
 Forums Minimize
SearchForum Home
     
  Mainstream Forums  Bugs  Custom Fields n...
 Custom Fields ntext
 
KillerKiwi
33 posts
Joined
2/12/2007

Custom Fields ntext
Posted: 20 May 08 8:15 PM
It seems that by default custom fields of type ntext are assigned a size of zero

Not good as this means no data is ever saved due to the AddParameter code
if ( sValue.Length > nSize )
                    sValue = sValue.Substring(0, nSize);




"This one's tricky. You have to use imaginary numbers, like eleventeen..." - Calvin
support
2094 posts
1st
Joined
1/3/2006

Re: Custom Fields ntext
Posted: 21 May 08 12:28 AM

Yup, that is a bug.  It should be fixed in our next 2.1 beta.  We did the following:

    if ( nSize == 0 )
     nSize = sValue.Length;
    else if ( sValue.Length > nSize )
     sValue = sValue.Substring(0, nSize);

  Mainstream Forums  Bugs  Custom Fields n...

Forum Home  Search       

Copyright (c) 2006-2008 SplendidCRM Software, Inc. All Rights Reserved.   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2008 by Perpetual Motion Interactive Systems Inc.
SplendidCRM and SplendidCRM Software are trademarks of SplendidCRM Software, Inc. SugarCRM is a trademark of SugarCRM Inc. in the United States, the European Union and other countries. All other trademarks used in this web site are the property of their respective owners.