Forums

 
ForumForumPlug-in and Pla...Plug-in and Pla...Outlook Plug-inOutlook Plug-inPlug-In Duration Hours ErrorPlug-In Duration Hours Error
Previous Previous
 
Next Next
New Post
 2/5/2007 9:02 AM
 

This is just a heads up.  I did a quick and dirty fix to an error that occurs while sync'ing duration_hours without an hour set in Sugar (i'd set a call for 30 minutes, hours was empty, not zero).  The app errored because duration_hours was an empty string or null.  It was an easy fix in Appointment.cs.  

This didn't have to be done for minutes sense you can't delete minutes

case "duration_hours" : nDurationHours = Convert.ToInt32(string.IsNullOrEmpty(sValue) ? "0" : sValue); break;

New Post
 2/5/2007 9:40 AM
 

Thanks.  We have fixed the code in Vault to use Sql.ToInteger() instead of Convert.ToInt32().  Our ToInteger function is used throughout SplendidCRM and will return 0 if the input is null, empty or DBNull.Value.

 

Previous Previous
 
Next Next
ForumForumPlug-in and Pla...Plug-in and Pla...Outlook Plug-inOutlook Plug-inPlug-In Duration Hours ErrorPlug-In Duration Hours Error